Jump to content


Form Date Menu

  • Please log in to reply
3 replies to this topic

#1 Daguse

  • Members
  • PipPip
  • Member
  • 26 posts

Posted 14 October 2006 - 10:56 PM

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!

#2 AndyB

  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 14 October 2006 - 11:13 PM

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.
Legend has it that reading the manual never killed anyone.
My site

#3 Daguse

  • Members
  • PipPip
  • Member
  • 26 posts

Posted 14 October 2006 - 11:32 PM

Cool thanks....
I may end up going with java if I have to.

#4 Barand

  • Moderators
  • Sen . ( ile || sei )
  • 18,021 posts

Posted 15 October 2006 - 12:03 AM

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 functions


If you are still using mysql_ functions, STOP! Use mysqli_ or PDO. The longer you leave it the more you will have to rewrite.

Donations gratefully received


|baaGrid| easy data tables - and more
|baaChart| easy line, column and pie charts

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users