tapupartforpres Posted October 1, 2009 Share Posted October 1, 2009 Hello. Sort of a newbie here. I have a form (that is send via email) and is not using a SQL database. I have a drop down with month, day, and year so a salesmen can select the date he submits the form. How to I automatically grab todays date and populate the drop down list? Any other ideas? Thanks! Link to comment https://forums.phpfreaks.com/topic/176194-solved-populate-date-for-dropdown/ Share on other sites More sharing options...
SoN9ne Posted October 1, 2009 Share Posted October 1, 2009 This is pretty vague... There are many different methods to do this, it depends on the code being used for the drop down. One method is to use the date() function and set it with time() using the needed fields, ie: M d Y or however you want. Depending on your script, you may need to break the date up further for each field. Hope this helps. Link to comment https://forums.phpfreaks.com/topic/176194-solved-populate-date-for-dropdown/#findComment-928495 Share on other sites More sharing options...
tapupartforpres Posted October 6, 2009 Author Share Posted October 6, 2009 Thanks man. Sorry about being vauge. I got it to work with some javascript. Thanks though. I would use some help on another post labeled "email form". Thanks Link to comment https://forums.phpfreaks.com/topic/176194-solved-populate-date-for-dropdown/#findComment-931832 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.