Hi
Take a look at this example
Following is the HTML code
Code:
<form action="<?=$_SERVER['PHP_SELF']?>" method="post">
<select name="test[]" multiple="multiple">
<option value="one">one</option>
<option value="two">two</option>
<option value="three">three</option>
<option value="four">four</option>
<option value="five">five</option>
</select>
<input type="submit" value="Send" />
</form>
Following is the PHP code
Code:
<?php
$test=$_POST['test'];
if ($test){
foreach ($test as $t){echo 'You select ',$t,'<br />';}
}
?>
Bookmarks