Learning PHP and MySQL
Example 10-04 Multiple book types
<form>
<select name="media" multiple=”multiple”>
<option></option>
<option>Hard Cover</option>
<option>Soft Cover</option>
<option>Reference</option>
<option>Audio Books</option>
</select>
</form>
Posted by on 08/18 at 11:01 AM
If you really want to make multiple selections, you need the output to be an array, you need to say name="media[]". (Just like you show in Figure 10-5.)
Posted by on 07/16 at 09:26 PM
Page 1 of 1 pages
Next entry: Example 10-05 A form with checkboxes using the same name to store multiple values
Previous entry: Figure 10-06 Radio buttons