> Got a problem with I'm sure a simple solution:: > > In this test form when I submit and insert into my db, only the last > select > field get entered; i.e. in this case the day value of 25. > > <form name="form1" method="post" action=""> > > Year > <select name="date" onSelect="return check_submit()"> > <option selected value=2002>2002</option> > </select> > > Month > <select name="date"> > <option selected value=12>12</option> > </select> > > Day > <select name="date"> > <option selected value=25>25</option> > </select> > > <input type="submit" name="textfield"> > > </form>
All of your form elements have the same name! What do you expect to happen? If you have this in PHP: $date = 1; $date = 2; $date = 3; What value do you think $date has now?? ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php