If you want user to choose one or more choices from select list, you use a code like:
<form action="service.php" method="POST">
<select name="Items[]" size=3 multiple>
<option value="1">alpha
<option value="2">beta
<option value="3">gamma
<option value="4">delta
<option value="5">epsilon
</select>
<input type="submit" value="OK" />
</form>
Don't know, how to identify Items[] in further php code. Statement
extract($POST) says 1, so $POST array is defined, however none of these statements are working:
service.php:
echo $_POST['Items[]'];
echo $_POST['Items[0]'];
echo $_POST['Items[1]'];
echo $_POST['Items'];
echo $_POST['Items['0']'];
echo $_POST[Items[]];
echo $_POST[Items];
/* ... and don't know what all I was trying
Please help if any idea.
Thanx