Two steps: First html:
<form action='databasethings.php' method=post>
<select name="myvalue">
<option value="value1">Value 1</option>
<option value="value2">Value 2</option>
<option value="value3">Value 3</option>
</select>
<input type=submit>
</form>
Its for sending values in a databasethings.php script. (
Then in databasethings.php:
$myvalue=$_POST['myvalue'];
//do something with myvalue
This will catch the value 1, 2 or 3 from html in $ myvalue in php
Chris source
share