<!DOCTYPE html>
<html>
<head>
<title>Full HTML entry from</title>
<style>
input,textarea,select {background-color:white; font-family:helvetica; border-radius:8px}
</style>
</head>
<body bgcolor="lightyellow">
<h1><center>The Ice Cream Shop</center></h1>
<h3>PHP validation <i>(one error at a time)</i>
<br>Write HTML form data to Database</h3>
<form method="POST" action="collect2.php">
<fieldset style='width:580px; height:330px; 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" id="fname">
<tr>
<td><b>Last Name
<td><input type="text" name="lastname" id="lname">
<tr>
<td><b>Enter Address
<td><textarea name="address" id="addr" rows="5" cols="50"></textarea>
<tr>
<td><b>Cone Type
<td><select name="cone" id="cone" style="width:175px">
<option value=''> Choose from below</option>
<option value='cake'> Cake Cone </option>
<option value='sugar'> Sugar Cone </option>
<option value='waffle'>Waffle Cone </option>
<option value='choc'> Chocolate Dipped </option>
</select>
<tr>
<td><b>Ice Cream Flavor
<td><select name="flavor[]" id="flavors" SIZE="4" multiple style="width:175px">
<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[]" id="top1" value="hotFudge"> Hot Fudge
<input type="checkbox" name="topping[]" id="top2" value="sprinkles"> Sprinkles
<input type="checkbox" name="topping[]" id="top3" value="nuts"> Nuts
<input type="checkbox" name="topping[]" id="top4" value="whippedCream"> Whipped Cream
<tr>
<td><b>Credit Card
<td>
<input type="radio" name="creditCard" id="visa" value="visa"> Visa
<input type="radio" name="creditCard" id="mc" value="master-card"> Master Card
<input type="radio" name="creditCard" id="amex" 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>