How can I display/redirect the selected values the drop down lists from a HTML page to a new page? For instance, if I select any value from the drop down list and when I click on the 'GO' button, the page will be directed to a new page with the selected value being displayed. Need help on this one.
<!DOCTYPE html>
<html>
<body>
<div align="center">
<center>
<h4 style="color:darkblue">Choose Your Food/Beverage & Status : </h3>
</center>
<table>
<tr>
<td>
<font size=2>
<B>Choose a Food/Beverage : </B>
</font>
<select ID="foodbeverage">
<optgroup label="DEFAULT">
<option value = "NONE">NONE</option>
</optgroup>
<optgroup label="Food">
<option value = "chickenchop">Chicken Chop</option>
<option value = "pasta">Pasta</option>
<option value = "pizza">Pizza</option>
<option value = "chocolate">Chocolate Cake</option>
<option value = "redvelvet">Red Velvet Cake</option>
<option value = "icecream">Ice Cream Cake</option>
</optgroup>
<optgroup label="Beverages">
<option value = "milk">Milk</option>
<option value = "freshjuice">Fresh Juice</option>
<option value = "icecream">Ice Cream</option>
<option value = "coffee">Coffee</option>
<option value = "carbonated">Carbonated Can Drink</option>
<option value = "water">Water</option>
</optgroup>
</select>
<br/>
<font size=2>
<B>Choose a Food/Beverage : </B>
</font>
<select ID="foodbeverage">
<optgroup label="DEFAULT">
<option value = "NONE">NONE</option>
</optgroup>
<optgroup label="Food">
<option value = "chickenchop">Chicken Chop</option>
<option value = "pasta">Pasta</option>
<option value = "pizza">Pizza</option>
<option value = "chocolate">Chocolate Cake</option>
<option value = "redvelvet">Red Velvet Cake</option>
<option value = "icecream">Ice Cream Cake</option>
</optgroup>
<optgroup label="Beverages">
<option value = "milk">Milk</option>
<option value = "freshjuice">Fresh Juice</option>
<option value = "icecream">Ice Cream</option>
<option value = "coffee">Coffee</option>
<option value = "carbonated">Carbonated Can Drink</option>
<option value = "water">Water</option>
</optgroup>
</select>
<br/>
</td>
<td>
<font size=2>
<B>Dine In or Take Away : </B>
</font>
<select ID="status">
<optgroup label="DEFAULT">
<option value = "NONE">NONE</option>
</optgroup>
<optgroup label="STATUS">
<option value = "dinein">Dine In</option>
<option value = "takeaway">Take Away</option>
</optgroup>
</select>
<br/>
<font size=2>
<B>Dine In or Take Away : </B>
</font>
<select ID="status">
<optgroup label="DEFAULT">
<option value = "NONE">NONE</option>
</optgroup>
<optgroup label="STATUS">
<option value = "dinein">Dine In</option>
<option value = "takeaway">Take Away</option>
</optgroup>
</select>
<br/>
</td>
</tr>
</table>
<br/>
<form method="get" action="newPage.html">
<input type="submit" value=" GO " />
</form>
<br/>
</body>
</html>
In this page, I want the values to be displayed/redirected accordingly.
<!DOCTYPE html>
<html>
<body>
<div align="center">
<font size=4>
<B>Food/Beverage Selected : </B>
</font>
<br/>
<br/>
<font size=4>
<B>Dine In/Take Away : </B>
</font>
<br/>
<br/>
</body>
</html>