Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<form action=[green]mypage.php[/green] method=[red]POST[/red]>
<SELECT multiple name="options">
<option value=1>One</option>
<option value=2>Two</option>
<option value=3>Three</option>
<option value=4>Four</option>
<option value=5>Five</option>
</select>
<input type=submit name=Submit value="Send Values">
</form>
echo $_POST['options'];
$myoptions=$_POST['options'];
echo $myoptions[0];
echo $myoptions[1];
echo $myoptions[2];
etc...
options=firstchoice,
however since there are more choices it continues to assing values:
options=secondchoice
options=thirdchoice
etc..
...
<SELECT multiple name="options[red][][/red]">
...
$myoptions=$_POST['options'];
Then:
echo $myoptions[0];
echo $myoptions[1];
echo $myoptions[2];
etc...
$selecteditems=count($myoptions);