HTML <select> form element
| From: | Brian McLaughlin | Date: | Fri, 12 Apr 2002 22:49:32 +0000 |
| Subject: | HTML <select> form element | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-92817@lists.php.net to get a copy of this message | ||
Hi all.
I have a tag like this on a php-generated web page.
<select name=majors multiple size="6">
<option value="Art">Art</option>
<option value="Biology">Biology</option>
<option value="Business and Economics">Business and Economics"</option>
etc.
etc.
</select>
My question is... since this is a multiple-select list, in the php script
that this form calls on a submit, how do I determine which options have been
selected? If I look at $majors, it is a string whose value is one of the
several options that were selected.
Thanks,
Brian