formular multiple select trouble
| From: | Sebastian | Date: | Tue, 02 Oct 2001 11:25:49 +0000 |
| Subject: | formular multiple select trouble | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-69565@lists.php.net to get a copy of this message | ||
Hi all
If i use multiple select fields in a from
i use name[] to access it in php afterwards
<select name=aname[] multiple>
<option>test1</option>
<option>test2</option>
</select>
i can then access in php $name and it has its the elements that were
selected.
my problem now is that i can't access name[] with javascript...
if i try
<javascript>
alert(document.fo.neme[].value);
</javascript>
gives an error...
is there another way to neme the seletc field?
if i use name=aname
then i only get one selected value in php.....
thanks
sebastian