I was wondering how I get the information VIA post from a option tag, here is my code so far and I am not sure what to do thanks.
<html>
<body>
<form method = "post" action="<?php echo $_SERVER['PHP_SELF'];?>">
<select>
<option name = "rock">Rock</option>
<option name = "paper">Paper</option>
<option name = "scissors">Scissors</option>
</select>
<button type = "submit">Submit</button>
</form>
<?php
$rock = $_POST["rock"];
$paper = $_POST["paper"];
$scissors = $_POST["scissors"];
?>
</body>
</html>
You want to name the select, and have values for each option like this:
<select name="choice">
<option value= "rock">Rock</option>
<option value= "paper">Paper</option>
<option value= "scissors">Scissors</option>
</select>
And:
$pick = $_POST['choice']
Also note that leaving the action field blank will automatically post back to the same page
<form method = "post" action="">