The question is: how to i catch all the selected values with php? The example below just gives back ONE value..
EXAMPLE
Code: Select all
<?php
$contents = '<form name="fxample" method="post">
<select name="example" size="3" multiple="multiple">
<option value="1">bike</option>
<option value="2">car</option>
<option value="3">train</option>
</select>
<input type="submit" value="Submit">
</form>';
echo $contents;
echo $_POST['example'];
?>