How do I Access Multiple Select in a Form?
| From: | Daniel R. Anderson | Date: | Sat, 03 May 2003 11:35:41 +0000 |
| Subject: | How do I Access Multiple Select in a Form? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-146252@lists.php.net to get a copy of this message | ||
I've got a form with a SELECT, but when I use echo POST to view the
contents all I get is the last option selected.
i.e.:
<FORM ...blah blah>
<SELECT NAME='something' SIZE=1 MULTPILE>
<OPTION VALUE='1'>option 1
<OPTION VALUE='2'>option 2
<OPTION VALUE='3'>option 3
...
<OPTION VALUE='n'>option n
<INPUT TYPE=SUBMIT VALUE='Submit!'>
</SELECT>
</FORM>
If I submitted that with options 1, 2, and n selected I would only get:
$_POST['something'] == 'n';
Any ideas?