RE: [PHP] Why does this happen?
| From: | Victor | Date: | Sun, 09 Feb 2003 01:42:45 +0000 |
| Subject: | RE: [PHP] Why does this happen? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-134927@lists.php.net to get a copy of this message | ||
Maybe you should rename them differently/ or make then into an array?
-----Original Message-----
From: CF High [mailto:noah@newminddesign.com]
Sent: Saturday, February 08, 2003 10:52 PM
To: php-general@lists.php.net
Subject: [PHP] Why does this happen?
Hey all.
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>
Why does this happen? In Cold Fusion I'm able to refer to the three
selects
as #date# and it returns 20021225 as expected.
Any ideas?
Thanks,
--Noah
--
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
______________________________________________________________________
Post your free ad now! http://personals.yahoo.ca