Daguse Posted October 14, 2006 Share Posted October 14, 2006 I really don't know where to start with this one, so any help would be good.I am wanting to make a drop down menu for date selection. I don't realy want to use java if I don't have too. Any help would be great and thank you! Link to comment https://forums.phpfreaks.com/topic/23963-form-date-menu/ Share on other sites More sharing options...
AndyB Posted October 14, 2006 Share Posted October 14, 2006 Javascript 'date pickers' are a dime-a-dozen as a quick Google will show you. Assuming that you don't want to use javascript, then your choices are restricted to a 3-dropdown set - days 1-31, months 1-23, years whenever to whenever. You could handcode it all using plain html or use php to loop through and create your dropdowns. It's up to you how you to decide. Link to comment https://forums.phpfreaks.com/topic/23963-form-date-menu/#findComment-108902 Share on other sites More sharing options...
Daguse Posted October 14, 2006 Author Share Posted October 14, 2006 Cool thanks....I may end up going with java if I have to. Link to comment https://forums.phpfreaks.com/topic/23963-form-date-menu/#findComment-108907 Share on other sites More sharing options...
Barand Posted October 15, 2006 Share Posted October 15, 2006 It's a relatively simple process in PHP to create a dropdown of, say, all dates in the next month or the next 20 Mondays, or next weeks dates.Have a look at these functionshttp://www.php.net/mktimehttp://www.php.net/strtotimehttp://www.php.net/date Link to comment https://forums.phpfreaks.com/topic/23963-form-date-menu/#findComment-108912 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.