select tag
Posted: Mon Oct 24, 2005 3:46 am
is it possible to send select + option tags values in a form, and how? my code at the moment is:
do i have to give a seperate name for each option tag, or do i just use
and so on?
Code: Select all
<select name="size">
<option value="256">256KB</option>
<option value="512">512KB</option>
<option value="1024">1MB</option>
<option value="2048">2MB</option>
<option value="4096">4MB</option>
</select>Code: Select all
$size = $_POST['size'];
if ($size == 256)
{ ... }
if ($size == 512)
{ ... }