andrewsheldon98
02-28-2003, 12:37 AM
how can i submit an option to a php form that brings up a particular sentence.
e.g
if option = 1 then print"you have selected option 1"
if option = 2 then print"you have selected option 2"
and so on.
this is the form im using
-------------------------------
<form action="eg.php" method="POST">
<select name="products">
<option>1
<option>2
<option>3
<option>4
</select>
<br>
<input type="submit" value="Go">
</form>
e.g
if option = 1 then print"you have selected option 1"
if option = 2 then print"you have selected option 2"
and so on.
this is the form im using
-------------------------------
<form action="eg.php" method="POST">
<select name="products">
<option>1
<option>2
<option>3
<option>4
</select>
<br>
<input type="submit" value="Go">
</form>