<!DOCTYPE html>
<html>
<head>
<title>Full HTML entry from</title>
</head>
<body bgcolor="lightyellow">
<h1><center>The Ice Cream Shop</center></h1>
<h3>PHP Validation
<br>Write HTML form data to Database</h3>
<form name="form1" method="GET" action="formToDB.php">
<fieldset style='width:580px; height:310px; border-color:gold'>
<legend>Enter Fields Below</legend>
<table bgcolor=tan width=570px>
<tr>
<td><b>Enter First Name
<td><input type="text" name="firstname">
<tr>
<td><b>Last Name
<td><input type="text" name="lastname">
<tr>
<td><b>Enter Address
<td><textarea name="address" rows="4" cols="45"></textarea>
<tr>
<td><b>Ice Cream Flavor
<td><select name="flavor[]" SIZE="4" multiple="multiple">
<option value='vanilla'> Vanilla </option>
<option value='chocolate'> Chocolate </option>
<option value='strawberry'> Strawberry </option>
<option value='butter-pecan'> Butter Pecan </option>
<option value='rocky-road'> Rocky Road </option>
<option value='french-vanilla'>French Vanilla</option>
<option value='pistachio'> Pistachio </option>
</select>
<tr>
<td><b>Select Topping
<td>
<input type="checkbox" name="topping[]" value="hotFudge"> Hot Fudge
<input type="checkbox" name="topping[]" value="sprinkles"> Sprinkles
<input type="checkbox" name="topping[]" value="nuts"> Nuts
<input type="checkbox" name="topping[]" value="whippedCream"> Whipped Cream
<tr>
<td><b>Credit Card
<td>
<input type="radio" name="creditCard" value="visa"> Visa
<input type="radio" name="creditCard" value="master-card"> Master Card
<input type="radio" name="creditCard" value="amex"> American Express
<tr>
<td colspan=2>
<input type="submit" value=" Place Order ">
<input type="reset" value="Cancel">
</table>
</fieldset>
</form>
<hr>
Click <a href=getFromDB.php>here</a> to see all orders
</body>
</html>