title: How do I keep a users checked radio button on the next page with php?
body: <p>I'm trying to keep a checked radio button that has been selected by a user to pass to the same page, but for confirmation to allow the user to see what they entered is correct. This shouldn't be this hard, but I can't get it to quite work right.</p>
  
  <p>Right now it is carrying over one checked, but it's just the last one and not impacting the user selection.</p>
  
  <p>Thanks!</p>
  
  <p>EDIT:</p>
  
  <p>I think I have my code messed up now. I tried adding a session array, but now my verify page isn't loading. I like the idea of setting this up with a session array since I'm looking at passing this data into an email once they verify it. Here's the code for my two pages right now.</p>
  
  <p><strong>order_form.php</strong></p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
  &lt;title&gt;HMC Promotional Items&lt;/title&gt;
  &lt;link href="css/hmcpromo_secure.css" rel="stylesheet" type="text/css" /&gt;
  &lt;script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="SpryAssets/SpryValidationRadio.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" /&gt;
  &lt;link href="SpryAssets/SpryValidationRadio.css" rel="stylesheet" type="text/css" /&gt;
  
  &lt;?php
  
  session_start();
  
  ?&gt;
  
  &lt;/head&gt;
  
  &lt;body&gt;
  
  &lt;div id="logo"&gt;&lt;img src="images/wfhm_bw_logo.jpg" width="272" height="114" /&gt;&lt;/div&gt;
  
  &lt;div&gt;
  &lt;h1&gt;HMC Web Sites&lt;/h1&gt;
  &lt;h2&gt;Personalized Promotional Items&lt;/h2&gt;
  &lt;br /&gt;
  &lt;p&gt;
    The cost of items ordered will be deducted from branch P&amp;amp;L. If this is a personal order, complete credit card information below. &lt;strong&gt;Order form must be filled out completely.&lt;/strong&gt; If you do not receive an email acknowledgment of your order within 2 business days, please call 1-800-535-1395 to verify receipt.&lt;/p&gt;
  &lt;/div&gt;
  
  
  &lt;form id="promo_order_form" name="promo_order_form" method="post" action="verify_order_form.php"&gt;
  
  &lt;div id="order_form"&gt;
  &lt;span id="sprytextfield7"&gt;
  &lt;label for="Order_Date"&gt;Order Date:&lt;/label&gt;
      &lt;input type="text" name="Order_Date" id="Order_Date" /&gt;
      &lt;span class="textfieldRequiredMsg"&gt;A value is required.&lt;/span&gt;&lt;span class="textfieldInvalidFormatMsg"&gt;Invalid format.&lt;/span&gt;&lt;/span&gt;
      &lt;br /&gt;
      &lt;br /&gt;
  &lt;span id="sprytextfield17"&gt;
      &lt;label for="Date_Needed"&gt;Date Needed:&lt;/label&gt;
      &lt;input type="text" name="Date_Needed" id="Date_Needed" /&gt;
      &lt;span class="textfieldRequiredMsg"&gt;A value is required.&lt;/span&gt;&lt;span class="textfieldInvalidFormatMsg"&gt;Invalid format.&lt;/span&gt;&lt;/span&gt;
      &lt;br /&gt;
      &lt;br /&gt;
  &lt;span id="sprytextfield16"&gt;
      &lt;label for="AU"&gt;AU #:&lt;/label&gt;
      &lt;input type="text" name="AU" id="AU" /&gt;
      &lt;span class="textfieldRequiredMsg"&gt;A value is required.&lt;/span&gt;&lt;span class="textfieldInvalidFormatMsg"&gt;Invalid format.&lt;/span&gt;&lt;/span&gt;
      &lt;br /&gt;
      (Required for ALL orders, including credit card orders)
      &lt;br /&gt;
      &lt;br /&gt;
  &lt;span id="sprytextfield15"&gt;
      &lt;label for="Approved"&gt;Approved by:&lt;/label&gt;
      &lt;input type="text" name="Approved" id="Approved" /&gt;
      &lt;span class="textfieldRequiredMsg"&gt;A value is required.&lt;/span&gt;&lt;/span&gt;
      &lt;br /&gt;
      (Managers approval required)
      &lt;br /&gt;
      &lt;br /&gt;
  &lt;span id="sprytextfield5"&gt;
      &lt;label for="mgrEmail"&gt;Manager Email:&lt;/label&gt;
      &lt;input type="text" name="mgrEmail" id="mgrEmail" /&gt;
      &lt;span class="textfieldRequiredMsg"&gt;A value is required.&lt;/span&gt;&lt;span class="textfieldInvalidFormatMsg"&gt;Invalid format.&lt;/span&gt;&lt;/span&gt;
      &lt;br /&gt;
      &lt;br /&gt;
  &lt;span id="sprytextfield14"&gt;
      &lt;label for="Contact"&gt;Contact:&lt;/label&gt;
      &lt;input type="text" name="Contact" id="Contact" /&gt;
      &lt;span class="textfieldRequiredMsg"&gt;A value is required.&lt;/span&gt;&lt;/span&gt;
      &lt;br /&gt;
      &lt;br /&gt;
  &lt;span id="sprytextfield13"&gt;
      &lt;label for="Email"&gt;Email:&lt;/label&gt;
      &lt;input type="text" name="Email" id="Email" /&gt;
      &lt;span class="textfieldRequiredMsg"&gt;A value is required.&lt;/span&gt;&lt;span class="textfieldInvalidFormatMsg"&gt;Invalid format.&lt;/span&gt;&lt;/span&gt;
      &lt;br /&gt;
      &lt;br /&gt;
  &lt;span id="sprytextfield12"&gt;
      &lt;label for="Phone1"&gt;Phone #:&lt;/label&gt;
      &lt;input type="text" name="Phone1" id="Phone1" /&gt;
      &lt;span class="textfieldRequiredMsg"&gt;A value is required.&lt;/span&gt;&lt;span class="textfieldInvalidFormatMsg"&gt;Invalid format.&lt;/span&gt;&lt;/span&gt;
      &lt;br /&gt;
      &lt;br /&gt;
  &lt;span id="sprytextfield8"&gt;
  &lt;label for="Fax"&gt;Fax #:&lt;/label&gt;
  &lt;input type="text" name="Fax" id="Fax" /&gt;
  &lt;span class="textfieldInvalidFormatMsg"&gt;Invalid format.&lt;/span&gt;&lt;span class="textfieldRequiredMsg"&gt;A value is required.&lt;/span&gt;&lt;/span&gt;
      &lt;br /&gt;
      &lt;br /&gt;
  &lt;span id="sprytextfield9"&gt;
  &lt;label for="MAC"&gt;MAC #:&lt;/label&gt;
  &lt;input type="text" name="MAC" id="MAC" /&gt;
  &lt;span class="textfieldRequiredMsg"&gt;A value is required.&lt;/span&gt;&lt;span class="textfieldInvalidFormatMsg"&gt;Invalid format.&lt;/span&gt;&lt;/span&gt;
      &lt;br /&gt;
      &lt;br /&gt;
  &lt;span id="sprytextfield10"&gt;
      &lt;label for="Ship"&gt;Ship to:&lt;/label&gt;
      &lt;input type="text" name="Ship" id="Ship" /&gt;
      &lt;span class="textfieldRequiredMsg"&gt;A value is required.&lt;/span&gt;&lt;/span&gt;
      &lt;br /&gt;
      &lt;br /&gt;
  &lt;span id="sprytextfield11"&gt;
      &lt;label for="Attention"&gt;Attention:&lt;/label&gt;
      &lt;input type="text" name="Attention" id="Attention" /&gt;
      &lt;span class="textfieldRequiredMsg"&gt;A value is required.&lt;/span&gt;&lt;/span&gt;
      &lt;br /&gt;
      &lt;br /&gt;
  &lt;/div&gt;
  
  &lt;div id="personal_form"&gt;
    &lt;div id="personal_header"&gt;PERSONAL ORDERS ONLY:&lt;/div&gt;
  
    &lt;span id="spryradio1"&gt;
    &lt;label&gt;
      &lt;input type="hidden" name="Visa" value=""&gt;
      &lt;input name="cc" type="radio" id="Visa" value="Visa"/&gt;
      Visa&lt;/label&gt;
    &lt;br /&gt;
    &lt;label&gt;
      &lt;input type="hidden" name="Master" value=""&gt;
      &lt;input type="radio" name="cc" value="Master" id="Master" /&gt;
      Mastercard&lt;/label&gt;
    &lt;br /&gt;
    &lt;label&gt;
      &lt;input type="hidden" name="Amex" value=""&gt;
      &lt;input type="radio" name="cc" value="Amex" id="Amex" /&gt;
      Amex&lt;/label&gt;
  &lt;/span&gt;
  
    &lt;span id="sprytextfield21"&gt;
    &lt;label for="CardNum"&gt;Card Number:&lt;/label&gt;
    &lt;input type="text" name="CardNum" id="CardNum" /&gt;
    &lt;span class="textfieldInvalidFormatMsg"&gt;Invalid format.&lt;/span&gt;&lt;/span&gt;
    &lt;br /&gt;
    &lt;br /&gt;
  
    &lt;span id="sprytextfield18"&gt;
    &lt;label for="exp"&gt;EXP:&lt;/label&gt;
    &lt;input name="exp" type="text" id="exp" value="MM/YY" size="10" maxlength="5" /&gt;
  &lt;/span&gt;
  
    &lt;span id="sprytextfield20"&gt;
    &lt;label for="cvs"&gt;CVS #:&lt;/label&gt;
    &lt;input name="cvs" type="text" id="cvs" size="5" maxlength="3" /&gt;
    &lt;span class="textfieldInvalidFormatMsg"&gt;Invalid format.&lt;/span&gt;&lt;/span&gt;
    &lt;br /&gt;
    &lt;br /&gt;
    &lt;span id="sprytextfield19"&gt;
    &lt;label for="auth"&gt;Name on Card:&lt;/label&gt;
    &lt;input name="auth" type="text" id="auth" size="40" /&gt;
  &lt;/span&gt;
  &lt;/div&gt;
  
  &lt;div id="delivery"&gt;
      &lt;p&gt;Please allow 3 weeks for delivery.
      &lt;br /&gt;
      &lt;br /&gt;
      Orders will ship via UPS Ground. Individual product styles will ship separately.
    &lt;/p&gt;
  &lt;/div&gt;
  
      &lt;br /&gt;
  &lt;ul&gt;
    &lt;li class="clear"&gt;PERSONALIZATION INFORMATION&lt;/li&gt;
  &lt;/ul&gt;
  
  &lt;div id="pers_form"&gt;
  &lt;span id="sprytextfield3"&gt;
      &lt;label for="First"&gt;First Name:&lt;/label&gt;
      &lt;input type="text" name="First" id="First" /&gt;
      &lt;span class="textfieldRequiredMsg"&gt;A value is required.&lt;/span&gt;&lt;/span&gt;
  
  &lt;span id="sprytextfield2"&gt;
      &lt;label for="Last"&gt;Last Name:&lt;/label&gt;
      &lt;input type="text" name="Last" id="Last" /&gt;
      &lt;span class="textfieldRequiredMsg"&gt;A value is required.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;
  
  &lt;span id="sprytextfield4"&gt;
      &lt;label for="Phone2"&gt;Phone #:&lt;/label&gt;
      &lt;input type="text" name="Phone2" id="Phone2" /&gt;
      &lt;span class="textfieldInvalidFormatMsg"&gt;Invalid format.&lt;/span&gt;&lt;/span&gt;
  
  &lt;span id="sprytextfield1"&gt;
      &lt;label for="Email2"&gt;Email:&lt;/label&gt;
      &lt;input type="text" name="Email2" id="Email2" /&gt;
      &lt;span class="textfieldInvalidFormatMsg"&gt;Invalid format.&lt;/span&gt;&lt;/span&gt;
  &lt;/div&gt;
  
  &lt;div id="totals_header"&gt;
  TOTAL COST
  &lt;/div&gt;
  
      &lt;br /&gt;
  &lt;ul&gt;
    &lt;li&gt;ITEM&lt;/li&gt;
  &lt;/ul&gt;
  
  &lt;div id="item_form"&gt;
    &lt;h3&gt;Executive Metal Grip Roller&lt;/h3&gt;
      &lt;input name="ItemNum" type="hidden" id="ItemNum" value="EMGR" /&gt;
      &lt;br /&gt;
      &lt;input name="ItemPrice" type="text" id="ItemPrice" value="$1.10 Each" size="12" readonly="readonly" /&gt;
      &lt;br /&gt;
      &lt;br /&gt;
  &lt;span id="sprytextfield6"&gt;
  &lt;label for="Qty"&gt;Qty (Minimum 300):&lt;/label&gt;
  &lt;input name="Qty" type="text" id="Qty" size="10" /&gt;
  &lt;span class="textfieldRequiredMsg"&gt;A value is required.&lt;/span&gt;&lt;span class="textfieldInvalidFormatMsg"&gt;Invalid format.&lt;/span&gt;&lt;span class="textfieldMinValueMsg"&gt;The entered value is less than the minimum required.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
      &lt;br /&gt;
      &lt;label for="Total"&gt;Total:&lt;/label&gt;
      &lt;input name="Total" type="text" id="Total" size="25" readonly="readonly" /&gt;
      &lt;br /&gt;
      &lt;hr /&gt;
      &lt;input type="submit" name="Submit" id="Submit" value="Submit" /&gt;
      &lt;br /&gt;
  &lt;/div&gt;
  
  &lt;div id="totals_form"&gt;
    &lt;label for="Subtotal"&gt;Subtotal&lt;/label&gt;
    &lt;input name="Subtotal" type="text" id="Subtotal" size="15" readonly="readonly" /&gt;
    &lt;br /&gt;
    &lt;br /&gt;
    &lt;label for="Sales_Tax"&gt;Sales Tax (MN only)&lt;/label&gt;
    &lt;input name="Sales_Tax" type="text" id="Sales_Tax" size="15" /&gt;
    &lt;br /&gt;
    &lt;br /&gt;
    &lt;label for="P_H"&gt;Packaging and Handling&lt;/label&gt;
    &lt;input name="P_H" type="text" id="P_H" value="$3.75" size="15" readonly="readonly" /&gt;
    &lt;br /&gt;
    &lt;br /&gt;  
    &lt;label for="Freight"&gt;Freight&lt;/label&gt;
    &lt;input name="Freight" type="text" id="Freight" size="15" readonly="readonly" /&gt;
    &lt;br /&gt;
    &lt;hr /&gt;
    &lt;label for="Totals"&gt;Total&lt;/label&gt;
    &lt;input name="Totals" type="text" id="Totals" size="15" readonly="readonly" /&gt;
  &lt;/div&gt;
  
  &lt;div class="clear"&gt;&lt;!--CLEAR--&gt;&lt;/div&gt;
  
  &lt;/form&gt;
  
  &lt;script type="text/javascript"&gt;
  &lt;!--
  var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "email", {isRequired:false});
  var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2", "none");
  var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3", "none");
  var sprytextfield4 = new Spry.Widget.ValidationTextField("sprytextfield4", "phone_number", {isRequired:false, useCharacterMasking:true});
  var sprytextfield5 = new Spry.Widget.ValidationTextField("sprytextfield5", "email", {useCharacterMasking:true});
  var sprytextfield6 = new Spry.Widget.ValidationTextField("sprytextfield6", "integer", {minValue:300});
  var sprytextfield7 = new Spry.Widget.ValidationTextField("sprytextfield7", "date", {useCharacterMasking:true});
  var sprytextfield8 = new Spry.Widget.ValidationTextField("sprytextfield8", "phone_number", {useCharacterMasking:true});
  var sprytextfield9 = new Spry.Widget.ValidationTextField("sprytextfield9", "integer", {useCharacterMasking:true});
  var sprytextfield10 = new Spry.Widget.ValidationTextField("sprytextfield10", "none");
  var sprytextfield11 = new Spry.Widget.ValidationTextField("sprytextfield11", "none");
  var sprytextfield12 = new Spry.Widget.ValidationTextField("sprytextfield12", "phone_number", {useCharacterMasking:true});
  var sprytextfield13 = new Spry.Widget.ValidationTextField("sprytextfield13", "email", {useCharacterMasking:true});
  var sprytextfield14 = new Spry.Widget.ValidationTextField("sprytextfield14");
  var sprytextfield15 = new Spry.Widget.ValidationTextField("sprytextfield15");
  var sprytextfield16 = new Spry.Widget.ValidationTextField("sprytextfield16", "integer");
  var sprytextfield17 = new Spry.Widget.ValidationTextField("sprytextfield17", "date", {useCharacterMasking:true});
  var spryradio1 = new Spry.Widget.ValidationRadio("spryradio1", {isRequired:false});
  var sprytextfield18 = new Spry.Widget.ValidationTextField("sprytextfield18", "none", {isRequired:false});
  var sprytextfield19 = new Spry.Widget.ValidationTextField("sprytextfield19", "none", {isRequired:false});
  var sprytextfield20 = new Spry.Widget.ValidationTextField("sprytextfield20", "integer", {isRequired:false});
  var sprytextfield21 = new Spry.Widget.ValidationTextField("sprytextfield21", "integer", {isRequired:false});
  //--&gt;
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>verify_order_form.php</strong></p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
  &lt;title&gt;HMC Promotional Items&lt;/title&gt;
  &lt;link href="css/hmcpromo_secure.css" rel="stylesheet" type="text/css" /&gt;
  &lt;script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="SpryAssets/SpryValidationRadio.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" /&gt;
  &lt;link href="SpryAssets/SpryValidationRadio.css" rel="stylesheet" type="text/css" /&gt;
  
  &lt;?php
  
  session_start();
  
  $_SESSION['Visa'];
  $_SESSION['Master'];
  $_SESSION['Amex'];
  
  
  
  //Order Form Var
  $Order_Date = strip_tags($_POST['Order_Date']);
  $Date_Needed = strip_tags($_POST['Date_Needed']);
  $AU = strip_tags($_POST['AU']);
  $Approved = strip_tags($_POST['Approved']);
  $mgrEmail = strip_tags($_POST['mgrEmail']);
  $Contact = strip_tags($_POST['Contact']);
  $Email = strip_tags($_POST['Email']);
  $Phone1 = strip_tags($_POST['Phone1']);
  $Fax = strip_tags($_POST['Fax']);
  $MAC = strip_tags($_POST['MAC']);
  $Ship = strip_tags($_POST['Ship']);
  $Attention = strip_tags($_POST['Attention']);
  
  //Personal Order Form Var
  //$Visa = strip_tags($_POST['Visa']);
  //$Master = strip_tags($_POST['Master']);
  //$Amex = strip_tags($_POST['Amex']);
  $CardNum = strip_tags($_POST['CardNum']);
  $exp = strip_tags($_POST['exp']);
  $cvs = strip_tags($_POST['cvs']);
  $auth = strip_tags($_POST['auth']);
  
  //Personalization Form Var
  $First = strip_tags($_POST['First']);
  $Last = strip_tags($_POST['Last']);
  $Phone2 = strip_tags($_POST['Phone2']);
  $Email2 = strip_tags($_POST['Email2']);
  
  //Item Form Var and Math
  $ItemNum = strip_tags($_POST['ItemNum']);
  $ItemPrice = strip_tags($_POST['ItemPrice']);
  $ItemNum = strip_tags($_POST['ItemNum']);
  $Qty = strip_tags($_POST['Qty']);
  $Total = strip_tags($_POST['Total']);
  
  //Totals Form Math
  $Subtotal = strip_tags($_POST['Subtotal']);
  $Sales_Tax = strip_tags($_POST['Sales_Tax']);
  $P_H = strip_tags($_POST['P_H']);
  $Freight = strip_tags($_POST['Freight']);
  $Totals = strip_tags($_POST['Totals']);
  
  ?&gt; 
  
  &lt;/head&gt;
  
  &lt;body&gt;
  
  &lt;div id="logo"&gt;&lt;img src="images/wfhm_bw_logo.jpg" width="272" height="114" /&gt;&lt;/div&gt;
  
  &lt;div&gt;
  &lt;h1&gt;Executive Metal Grip Roller&lt;/h1&gt;
  &lt;h2&gt;Personalized Promotional Items&lt;/h2&gt;
  &lt;br /&gt;
  &lt;p&gt;
    The cost of items ordered will be deducted from branch P&amp;amp;L. If this is a personal order, complete credit card information below. &lt;strong&gt;Order form must be filled out completely.&lt;/strong&gt; If you do not receive an email acknowledgment of your order within 2 business days, please call 1-800-535-1395 to verify receipt.&lt;/p&gt;
  &lt;/div&gt;
  
  &lt;form id="promo_order_form" name="promo_order_form" method="post" action=""&gt;
  
  &lt;div id="order_form"&gt;
  &lt;span id="sprytextfield7"&gt;
  &lt;label for="Order_Date"&gt;Order Date:&lt;/label&gt;
      &lt;input type="text" name="Order_Date" id="Order_Date" value='&lt;?php echo htmlentities($Order_Date) ?&gt;' /&gt;
      &lt;span class="textfieldRequiredMsg"&gt;A value is required.&lt;/span&gt;&lt;span class="textfieldInvalidFormatMsg"&gt;Invalid format.&lt;/span&gt;&lt;/span&gt;
      &lt;br /&gt;
      &lt;br /&gt;
  &lt;span id="sprytextfield17"&gt;
      &lt;label for="Date_Needed"&gt;Date Needed:&lt;/label&gt;
      &lt;input type="text" name="Date_Needed" id="Date_Needed" value='&lt;?php echo htmlentities($Date_Needed) ?&gt;' /&gt;
      &lt;span class="textfieldRequiredMsg"&gt;A value is required.&lt;/span&gt;&lt;span class="textfieldInvalidFormatMsg"&gt;Invalid format.&lt;/span&gt;&lt;/span&gt;
      &lt;br /&gt;
      &lt;br /&gt;
  &lt;span id="sprytextfield16"&gt;
      &lt;label for="AU"&gt;AU #:&lt;/label&gt;
      &lt;input type="text" name="AU" id="AU" value='&lt;?php echo htmlentities($AU) ?&gt;' /&gt;
      &lt;span class="textfieldRequiredMsg"&gt;A value is required.&lt;/span&gt;&lt;span class="textfieldInvalidFormatMsg"&gt;Invalid format.&lt;/span&gt;&lt;/span&gt;
      &lt;br /&gt;
      (Required for ALL orders, including credit card orders)
      &lt;br /&gt;
      &lt;br /&gt;
  &lt;span id="sprytextfield15"&gt;
      &lt;label for="Approved"&gt;Approved by:&lt;/label&gt;
      &lt;input type="text" name="Approved" id="Approved" value='&lt;?php echo htmlentities($Approved) ?&gt;' /&gt;
      &lt;span class="textfieldRequiredMsg"&gt;A value is required.&lt;/span&gt;&lt;/span&gt;
      &lt;br /&gt;
      (Managers approval required)
      &lt;br /&gt;
      &lt;br /&gt;
  &lt;span id="sprytextfield5"&gt;
      &lt;label for="mgrEmail"&gt;Manager Email:&lt;/label&gt;
      &lt;input type="text" name="mgrEmail" id="mgrEmail" value='&lt;?php echo htmlentities($mgrEmail) ?&gt;' /&gt;
      &lt;span class="textfieldRequiredMsg"&gt;A value is required.&lt;/span&gt;&lt;span class="textfieldInvalidFormatMsg"&gt;Invalid format.&lt;/span&gt;&lt;/span&gt;
      &lt;br /&gt;
      &lt;br /&gt;
  &lt;span id="sprytextfield14"&gt;
      &lt;label for="Contact"&gt;Contact:&lt;/label&gt;
      &lt;input type="text" name="Contact" id="Contact" value='&lt;?php echo htmlentities($Contact) ?&gt;' /&gt;
      &lt;span class="textfieldRequiredMsg"&gt;A value is required.&lt;/span&gt;&lt;/span&gt;
      &lt;br /&gt;
      &lt;br /&gt;
  &lt;span id="sprytextfield13"&gt;
      &lt;label for="Email"&gt;Email:&lt;/label&gt;
      &lt;input type="text" name="Email" id="Email" value='&lt;?php echo htmlentities($Email) ?&gt;' /&gt;
      &lt;span class="textfieldRequiredMsg"&gt;A value is required.&lt;/span&gt;&lt;span class="textfieldInvalidFormatMsg"&gt;Invalid format.&lt;/span&gt;&lt;/span&gt;
      &lt;br /&gt;
      &lt;br /&gt;
  &lt;span id="sprytextfield12"&gt;
      &lt;label for="Phone1"&gt;Phone #:&lt;/label&gt;
      &lt;input type="text" name="Phone1" id="Phone1" value='&lt;?php echo htmlentities($Phone1) ?&gt;' /&gt;
      &lt;span class="textfieldRequiredMsg"&gt;A value is required.&lt;/span&gt;&lt;span class="textfieldInvalidFormatMsg"&gt;Invalid format.&lt;/span&gt;&lt;/span&gt;
      &lt;br /&gt;
      &lt;br /&gt;
  &lt;span id="sprytextfield8"&gt;
  &lt;label for="Fax"&gt;Fax #:&lt;/label&gt;
  &lt;input type="text" name="Fax" id="Fax" value='&lt;?php echo htmlentities($Fax) ?&gt;' /&gt;
  &lt;span class="textfieldRequiredMsg"&gt;A value is required.&lt;/span&gt;&lt;span class="textfieldInvalidFormatMsg"&gt;Invalid format.&lt;/span&gt;&lt;/span&gt;
      &lt;br /&gt;
      &lt;br /&gt;
  &lt;span id="sprytextfield9"&gt;
      &lt;label for="MAC"&gt;MAC #:&lt;/label&gt;
      &lt;input type="text" name="MAC" id="MAC" value='&lt;?php echo htmlentities($MAC) ?&gt;' /&gt;
      &lt;span class="textfieldRequiredMsg"&gt;A value is required.&lt;/span&gt;&lt;/span&gt;
      &lt;br /&gt;
      &lt;br /&gt;
  &lt;span id="sprytextfield10"&gt;
      &lt;label for="Ship"&gt;Ship to:&lt;/label&gt;
      &lt;input type="text" name="Ship" id="Ship" value='&lt;?php echo htmlentities($Ship) ?&gt;' /&gt;
      &lt;span class="textfieldRequiredMsg"&gt;A value is required.&lt;/span&gt;&lt;/span&gt;
      &lt;br /&gt;
      &lt;br /&gt;
  &lt;span id="sprytextfield11"&gt;
      &lt;label for="Attention"&gt;Attention:&lt;/label&gt;
      &lt;input type="text" name="Attention" id="Attention" value='&lt;?php echo htmlentities($Attention) ?&gt;' /&gt;
      &lt;span class="textfieldRequiredMsg"&gt;A value is required.&lt;/span&gt;&lt;/span&gt;
      &lt;br /&gt;
      &lt;br /&gt;
  &lt;/div&gt;
  
  &lt;div id="personal_form"&gt;
    &lt;div id="personal_header"&gt;PERSONAL ORDERS ONLY:&lt;/div&gt;
  
    &lt;span id="spryradio1"&gt;
    &lt;label&gt;
      &lt;input type="radio" name="cc" value="Visa" &lt;?php echo if($_SESSION['cc'] == "Visa"){'checked="checked"';} ?&gt; id="Visa"  /&gt;
      Visa&lt;/label&gt;
    &lt;br /&gt;
    &lt;label&gt;
      &lt;input type="radio" name="cc" value="Master" &lt;?php echo if($_SESSION['cc'] == "Master"){'checked="checked"';} ?&gt; id="Master" /&gt;
      Mastercard&lt;/label&gt;
    &lt;br /&gt;
    &lt;label&gt;
      &lt;input type="radio" name="cc" value="Amex" &lt;?php echo if($_SESSION['cc'] == "Amex"){'checked="checked"';} ?&gt; id="Amex" /&gt;
      Amex&lt;/label&gt;
  &lt;/span&gt;
  
    &lt;span id="sprytextfield21"&gt;
    &lt;label for="CardNum"&gt;Card Number:&lt;/label&gt;
    &lt;input type="text" name="CardNum" id="CardNum" value='&lt;?php echo htmlentities($CardNum) ?&gt;' /&gt;
    &lt;span class="textfieldInvalidFormatMsg"&gt;Invalid format.&lt;/span&gt;&lt;/span&gt;
    &lt;br /&gt;
    &lt;br /&gt;
  
    &lt;span id="sprytextfield18"&gt;
    &lt;label for="exp"&gt;EXP:&lt;/label&gt;
    &lt;input name="exp" type="text" id="exp" size="10" maxlength="5" value='&lt;?php echo htmlentities($exp) ?&gt;' /&gt;
    &lt;/span&gt;
  
    &lt;span id="sprytextfield20"&gt;
    &lt;label for="cvs"&gt;CVS #:&lt;/label&gt;
    &lt;input name="cvs" type="text" id="cvs" size="5" maxlength="3" value='&lt;?php echo htmlentities($cvs) ?&gt;' /&gt;
    &lt;span class="textfieldInvalidFormatMsg"&gt;Invalid format.&lt;/span&gt;&lt;/span&gt;
    &lt;br /&gt;
    &lt;br /&gt;
    &lt;span id="sprytextfield19"&gt;
    &lt;label for="auth"&gt;Name on Card:&lt;/label&gt;
    &lt;input name="auth" type="text" id="auth" size="40" value='&lt;?php echo htmlentities($auth) ?&gt;' /&gt;
  &lt;/span&gt;
  &lt;/div&gt;
  
  &lt;div id="delivery"&gt;
      &lt;p&gt;Please allow 3 weeks for delivery.
      &lt;br /&gt;
      &lt;br /&gt;
      Orders will ship via UPS Ground. Individual product styles will ship separately.
    &lt;/p&gt;
  &lt;/div&gt;
  
      &lt;br /&gt;
  &lt;ul&gt;
    &lt;li class="clear"&gt;PERSONALIZATION INFORMATION&lt;/li&gt;
  &lt;/ul&gt;
  
  &lt;div id="pers_form"&gt;
  &lt;span id="sprytextfield3"&gt;
      &lt;label for="First"&gt;First Name:&lt;/label&gt;
      &lt;input type="text" name="First" id="First" value='&lt;?php echo htmlentities($First) ?&gt;' /&gt;
      &lt;span class="textfieldRequiredMsg"&gt;A value is required.&lt;/span&gt;&lt;/span&gt;
  
  &lt;span id="sprytextfield2"&gt;
      &lt;label for="Last"&gt;Last Name:&lt;/label&gt;
      &lt;input type="text" name="Last" id="Last" value='&lt;?php echo htmlentities($Last) ?&gt;' /&gt;
      &lt;span class="textfieldRequiredMsg"&gt;A value is required.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;
  
  &lt;span id="sprytextfield4"&gt;
      &lt;label for="Phone2"&gt;Phone #:&lt;/label&gt;
      &lt;input type="text" name="Phone2" id="Phone2" value='&lt;?php echo htmlentities($Phone2) ?&gt;' /&gt;
      &lt;span class="textfieldInvalidFormatMsg"&gt;Invalid format.&lt;/span&gt;&lt;/span&gt;
  
  &lt;span id="sprytextfield1"&gt;
      &lt;label for="Email2"&gt;Email:&lt;/label&gt;
      &lt;input type="text" name="Email2" id="Email2" value='&lt;?php echo htmlentities($Email2) ?&gt;' /&gt;
      &lt;span class="textfieldInvalidFormatMsg"&gt;Invalid format.&lt;/span&gt;&lt;/span&gt;
  &lt;/div&gt;
  
  &lt;div id="totals_header"&gt;
  TOTAL COST
  &lt;/div&gt;
  
      &lt;br /&gt;
  &lt;ul&gt;
    &lt;li&gt;ITEM&lt;/li&gt;
  &lt;/ul&gt;
  
  &lt;div id="item_form"&gt;
    &lt;h3&gt;Executive Metal Grip Roller&lt;/h3&gt;
      &lt;input name="ItemNum" type="hidden" id="ItemNum" value="EMGR" /&gt;
      &lt;br /&gt;
      &lt;input name="ItemPrice" type="text" id="ItemPrice" value="$1.10 Each" size="12" readonly="readonly" /&gt;
      &lt;br /&gt;
      &lt;br /&gt;
  &lt;span id="sprytextfield6"&gt;
  &lt;label for="Qty"&gt;Qty (Minimum 300):&lt;/label&gt;
  &lt;input name="Qty" type="text" id="Qty" size="10" value='&lt;?php echo htmlentities($Qty) ?&gt;' /&gt;
  &lt;span class="textfieldRequiredMsg"&gt;A value is required.&lt;/span&gt;&lt;span class="textfieldInvalidFormatMsg"&gt;Invalid format.&lt;/span&gt;&lt;span class="textfieldMinValueMsg"&gt;&lt;br /&gt;The entered value is less than the minimum required.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
      &lt;br /&gt;
      &lt;hr /&gt;
      &lt;label for="Total"&gt;Total:&lt;/label&gt;
      &lt;input name="Total" type="text" id="Total" size="25" readonly="readonly" /&gt;
  &lt;/div&gt;
  
  &lt;div id="totals_form"&gt;
    &lt;label for="Subtotal"&gt;Subtotal&lt;/label&gt;
    &lt;input name="Subtotal" type="text" id="Subtotal" size="15" readonly="readonly" /&gt;
    &lt;br /&gt;
    &lt;br /&gt;
    &lt;label for="Sales_Tax"&gt;Sales Tax (MN only)&lt;/label&gt;
    &lt;input name="Sales_Tax" type="text" id="Sales_Tax" size="15" /&gt;
    &lt;br /&gt;
    &lt;br /&gt;
    &lt;label for="P_H"&gt;Packaging and Handling&lt;/label&gt;
    &lt;input name="P_H" type="text" id="P_H" value="$3.75" size="15" readonly="readonly" /&gt;
    &lt;br /&gt;
    &lt;br /&gt;  
    &lt;label for="Freight"&gt;Freight&lt;/label&gt;
    &lt;input name="Freight" type="text" id="Freight" size="15" readonly="readonly" /&gt;
    &lt;br /&gt;
    &lt;hr /&gt;
    &lt;label for="Totals"&gt;Total&lt;/label&gt;
    &lt;input name="Totals" type="text" id="Totals" size="15" readonly="readonly" /&gt;
  &lt;/div&gt;
  
  &lt;div id="thank_you"&gt;
      &lt;center&gt;&lt;h3&gt;Thank you for your order!&lt;/h3&gt;
      &lt;p class="font_red"&gt;Please verify the information and click the button to submit your order.&lt;/p&gt;
      &lt;br /&gt;
      &lt;input name="Confirm" type="submit" class="font_bold" value="Confirm" /&gt;
      &lt;/center&gt;
  &lt;/div&gt;
  
  &lt;div class="clear"&gt;&lt;!--CLEAR--&gt;&lt;/div&gt;
  
  &lt;/form&gt;
  
  &lt;script type="text/javascript"&gt;
  &lt;!--
  var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "email", {isRequired:false, useCharacterMasking:true});
  var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2", "none", {validateOn:["change"]});
  var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3", "none", {validateOn:["change"]});
  var sprytextfield4 = new Spry.Widget.ValidationTextField("sprytextfield4", "phone_number", {isRequired:false, useCharacterMasking:true});
  var sprytextfield5 = new Spry.Widget.ValidationTextField("sprytextfield5", "email", {validateOn:["change"], useCharacterMasking:true});
  var sprytextfield6 = new Spry.Widget.ValidationTextField("sprytextfield6", "integer", {minValue:300, validateOn:["change"]});
  var sprytextfield7 = new Spry.Widget.ValidationTextField("sprytextfield7", "date", {useCharacterMasking:true});
  var sprytextfield8 = new Spry.Widget.ValidationTextField("sprytextfield8", "phone_number", {useCharacterMasking:true});
  var sprytextfield9 = new Spry.Widget.ValidationTextField("sprytextfield9");
  var sprytextfield10 = new Spry.Widget.ValidationTextField("sprytextfield10");
  var sprytextfield11 = new Spry.Widget.ValidationTextField("sprytextfield11");
  var sprytextfield12 = new Spry.Widget.ValidationTextField("sprytextfield12", "phone_number", {useCharacterMasking:true});
  var sprytextfield13 = new Spry.Widget.ValidationTextField("sprytextfield13", "email", {validateOn:["change"], useCharacterMasking:true});
  var sprytextfield14 = new Spry.Widget.ValidationTextField("sprytextfield14");
  var sprytextfield15 = new Spry.Widget.ValidationTextField("sprytextfield15");
  var sprytextfield16 = new Spry.Widget.ValidationTextField("sprytextfield16", "integer");
  var sprytextfield17 = new Spry.Widget.ValidationTextField("sprytextfield17", "date", {useCharacterMasking:true});
  var spryradio1 = new Spry.Widget.ValidationRadio("spryradio1", {isRequired:false});
  var sprytextfield18 = new Spry.Widget.ValidationTextField("sprytextfield18", "none", {isRequired:false});
  var sprytextfield19 = new Spry.Widget.ValidationTextField("sprytextfield19", "none", {isRequired:false});
  var sprytextfield20 = new Spry.Widget.ValidationTextField("sprytextfield20", "integer", {isRequired:false});
  //--&gt;
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>