Solved

saving submitted form data issue

Posted on 2004-09-11
10
361 Views
Last Modified: 2013-12-24
Hi all,
Encountering a strange issue with this shopping cart app of ours.

Basically we have a large form with several fields. Some of these fields are required, others are not. When a user leaves any of these required fields blank and hits submit, the page reloads and states they failed to fill in the specified form values. This is fine an all, however, the reloaded page resets all the data previously entered! The user then has to reenter all the info again.

Here's the code for the page...

<head>
<SCRIPT LANGUAGE="JavaScript">

function verify() {
var themessage = "You are required to complete the following fields: ";
if (document.form1.BILL_TO_ADDR1.value=="") {
themessage = themessage + " - Address 1 Field";
}
if (document.form1.Bill_to_city.value=="") {
themessage = themessage + " -  City";
}
if (document.form1.Bill_to_country.value=="") {
themessage = themessage + " - Country";
}
if (document.form1.Bill_to_email.value=="") {
themessage = themessage + " - Email Address";
}
if (document.form1.Bill_to_fname.value=="") {
themessage = themessage + " - First Name";
}
if (document.form1.Bill_to_lname.value=="") {
themessage = themessage + " - Last Name";
}
if (document.form1.Bill_to_phone.value=="") {
themessage = themessage + " - Phone";
}
if (document.form1.Bill_to_state.value=="") {
themessage = themessage + " - State";
}
if (document.form1.Bill_to_zip.value=="") {
themessage = themessage + " - Zip Code";
}
if (document.form1.CC_NUMBER.value=="") {
themessage = themessage + " - Credit Card Number";
}
if (document.form1.CC_CVV.value=="") {
themessage = themessage + " - CVV Code";
}
//alert if fields are empty and cancel form submit
if (themessage == "You are required to complete the following fields: ") {
document.form1.submit();
}
else {
alert(themessage);
return false;
   }
}
//  End -->
</script>
</head>



<CFIF ArrayIsEmpty(session.cart) IS "true">
      <CFLOCATION URL="cart.cfm?CartEmpty=yes">
</CFIF>

<CFQUERY NAME="GetShipList" DATASOURCE="bbcSQL">
SELECT * FROM Shipping
</CFQUERY>

<CFPARAM NAME="Session.ErrorList" DEFAULT="">
<CFPARAM NAME="Session.FormInfo" DEFAULT="">
<CFIF IsDefined("Session.ErrorList")>
<CFIF ListLen("Session.ErrorList") GT 0>
<CFSET BILL_TO_ADDR1="Billing Address">
<CFSET BILL_TO_ADDR2="Billing Address 2">
<CFSET BILL_TO_CITY="Billing City">
<CFSET BILL_TO_COUNTRY="Billing Country">
<CFSET BILL_TO_EMAIL="Billing E-mail Address">
<CFSET BILL_TO_FNAME="Billing First Name">
<CFSET BILL_TO_LNAME="Billing Last Name">
<CFSET BILL_TO_PHONE="Billing Phone Number">
<CFSET BILL_TO_STATE="Billing State">
<CFSET BILL_TO_ZIP="Billing Zip Code">
<CFSET CC_NUMBER="Credit Card Number">
<CFSET CC_CVV="CVV CODE">
</CFIF>
</CFIF>

<CFSET StateProv='
                                                                              <option value="">Click to Select</option>
                                                                              <option value="Other">International (not in list)</option>
                                                                              <option value="AL">Alabama</option>
                                                                              <option value="AK">Alaska</option>
                                                                              <option value="AB">Alberta</option>
                                                                              <option value="AS">American Samoa</option>
                                                                              <option value="AZ">Arizona</option>
                                                                              <option value="AR">Arkansas</option>
                                                                              <option value="AA">Armed Forces - USA/Canada</option>
                                                                              <option value="AE">Armed Forces - Europe</option>
                                                                              <option value="AP">Armed Forces - Pacific</option>
                                                                              <option value="BC">British Columbia</option>
                                                                              <option value="CA">California</option>
                                                                              <option value="CO">Colorado</option>
                                                                              <option value="CT">Connecticut</option>
                                                                              <option value="DE">Delaware</option>
                                                                              <option value="DC">District of Columbia</option>
                                                                              <option value="FM">Federated States of Micronesia</option>
                                                                              <option value="FL">Florida</option>
                                                                              <option value="GA">Georgia</option>
                                                                              <option value="GU">Guam</option>
                                                                              <option value="HI">Hawaii</option>
                                                                              <option value="ID">Idaho</option>
                                                                              <option value="IL">Illinois</option>
                                                                              <option value="IN">Indiana</option>
                                                                              <option value="IA">Iowa</option>
                                                                              <option value="KS">Kansas</option>
                                                                              <option value="KY">Kentucky</option>
                                                                              <option value="LA">Louisiana</option>
                                                                              <option value="ME">Maine</option>
                                                                              <option value="MB">Manitoba</option>
                                                                              <option value="MH">Marshall Islands</option>
                                                                              <option value="MD">Maryland</option>
                                                                              <option value="MA">Massachusetts</option>
                                                                              <option value="MI">Michigan</option>
                                                                              <option value="MN">Minnesota</option>
                                                                              <option value="MS">Mississippi</option>
                                                                              <option value="MO">Missouri</option>
                                                                              <option value="MT">Montana</option>
                                                                              <option value="NE">Nebraska</option>
                                                                              <option value="NV">Nevada</option>
                                                                              <option value="NB">New Brunswick</option>
                                                                              <option value="NH">New Hampshire</option>
                                                                              <option value="NJ">New Jersey</option>
                                                                              <option value="NM">New Mexico</option>
                                                                              <option value="NY">New York</option>
                                                                              <option value="NF">Newfoundland</option>
                                                                              <option value="NC">North Carolina</option>
                                                                              <option value="ND">North Dakota</option>
                                                                              <option value="MP">Northern Mariana Island</option>
                                                                              <option value="NT">Northwest Territories</option>
                                                                              <option value="NS">Nova Scotia</option>
                                                                              <option value="OH">Ohio</option>
                                                                              <option value="OK">Oklahoma</option>
                                                                              <option value="ON">Ontario</option>
                                                                              <option value="OR">Oregon</option>
                                                                              <option value="PW">Palau Island</option>
                                                                              <option value="PA">Pennsylvania</option>
                                                                              <option value="PE">Prince Edward Island</option>
                                                                              <option value="PR">Puerto Rico</option>
                                                                              <option value="QC">Quebec</option>
                                                                              <option value="RI">Rhode Island</option>
                                                                              <option value="SK">Saskatchewan</option>
                                                                              <option value="SC">South Carolina</option>
                                                                              <option value="SD">South Dakota</option>
                                                                              <option value="TN">Tennessee</option>
                                                                              <option value="TX">Texas</option>
                                                                              <option value="UT">Utah</option>
                                                                              <option value="VT">Vermont</option>
                                                                              <option value="VI">Virgin Islands</option>
                                                                              <option value="VA">Virginia</option>
                                                                              <option value="WA">Washington</option>
                                                                              <option value="WV">West Virginia</option>
                                                                              <option value="WI">Wisconsin</option>
                                                                              <option value="WY">Wyoming</option>
                                                                              <option value="YT">Yukon Territory</option>'>
                                                                              
<CFSET Countries='
                                                                              <Option Value="AD">Andora</option>
                                                                              <Option Value="AE">Arab Emirates</option>
                                                                              <Option Value="AF">Afghanistan</option>
                                                                              <Option Value="AG">Antigua &amp; Barbuda</option>
                                                                              <Option Value="AR">Argentina</option>
                                                                              <Option Value="AW">Aruba</option>
                                                                              <Option Value="AT">Austria</option>
                                                                              <Option Value="AU">Australia</option>
                                                                              <Option Value="BS">Bahamas</option>
                                                                              <Option Value="BH">Bahrain</option>
                                                                              <Option Value="BE">Belgium</option>
                                                                              <Option Value="BR">Brazil</option>
                                                                              <Option Value="BB">Barbados</option>
                                                                              <Option Value="CA">Canada</option>
                                                                              <Option Value="CG">Congo</option>
                                                                              <Option Value="CL">Chile</option>
                                                                              <Option Value="CN">China</option>
                                                                              <Option Value="CO">Colombia</option>
                                                                              <Option Value="CU">Cuba</option>
                                                                              <Option Value="CZ">Czech Republic</option>
                                                                              <Option Value="DK">Denmark</option>
                                                                              <Option Value="DO">Dominican Republic</option>
                                                                              <Option Value="EC">Ecuador</option>
                                                                              <Option Value="EG">Egypt</option>
                                                                              <Option Value="ET">Ethiopia</option>
                                                                              <Option Value="FR">France</option>
                                                                              <Option Value="FX">France European Territory</option>
                                                                              <Option Value="FI">Finland</option>
                                                                              <Option Value="DE">Germany</option>
                                                                              <Option Value="GB">Great Britain (UK)</option>
                                                                              <Option Value="GR">Greece</option>
                                                                              <Option Value="GL">Greenland</option>
                                                                              <Option Value="GU">Guam (US)</option>
                                                                              <Option Value="GT">Guatemala</option>
                                                                              <Option Value="HT">Haiti</option>
                                                                              <Option Value="HN">Honduras</option>
                                                                              <Option Value="HK">Hong Kong</option>
                                                                              <Option Value="HU">Hungary</option>
                                                                              <Option Value="IS">Iceland</option>
                                                                              <Option Value="IN">India</option>
                                                                              <Option Value="ID">Indonesia</option>
                                                                              <Option Value="IE">Ireland</option>
                                                                              <Option Value="IL">Israel</option>
                                                                              <Option Value="AT">Italy</option>
                                                                              <Option Value="JM">Jamaica</option>
                                                                              <Option Value="JP">Japan</option>
                                                                              <Option Value="KP">North Korea</option>
                                                                              <Option Value="KR">South Korea</option>
                                                                              <Option Value="KW">Kuwait</option>
                                                                              <Option Value="MN">Mongolia</option>
                                                                              <Option Value="MX">Mexico</option>
                                                                              <Option Value="NO">Norway</option>
                                                                              <Option Value="NL">Netherlands</option>
                                                                              <Option Value="NZ">New Zealand</option>
                                                                              <Option Value="PA">Panama</option>
                                                                              <Option Value="PE">Peru</option>
                                                                              <Option Value="PH">Philippines</option>
                                                                              <Option Value="PL">Poland</option>
                                                                              <Option Value="PR">Puerto Rico</option>
                                                                              <Option Value="RO">Romania</option>
                                                                              <Option Value="SA">Saudi Arabia</option>
                                                                              <Option Value="SG">Singapore</option>
                                                                              <Option Value="SE">Sweeden</option>
                                                                              <Option Value="ZA">South Africa</option>
                                                                              <Option Value="SU">Soviet Union</option>
                                                                              <Option Value="SD">Sudan</option>
                                                                              <Option Value="CH">Switzerland</option>
                                                                              <Option Value="TW">Taiwan</option>
                                                                              <Option Value="TH">Thailand</option>
                                                                              <Option Value="UK">United Kingdom</option>
                                                                              <option value="US">United States</option>
                                                                              <Option Value="VE">Venezuela</option>
                                                                              <Option Value="VI">Virgin Islands (US)</option>
                                                                              <Option Value="VN">Vietnam</option>
                                                                              <Option Value="YU">Yugoslavia</option>'>

<CFSET CCSelect='                                                                  
                                                                                                <option value="MC">MasterCard</option>
                                                                                                <option value="VI">Visa</option>'>

<CFSET CCMSelect='
                                                                                                <option value="01">01</option>
                                                                                                <option value="02">02</option>
                                                                                                <option value="03">03</option>
                                                                                                <option value="04">04</option>
                                                                                                <option value="05">05</option>
                                                                                                <option value="06">06</option>
                                                                                                <option value="07">07</option>
                                                                                                <option value="08">08</option>
                                                                                                <option value="09">09</option>
                                                                                                <option value="10">10</option>
                                                                                                <option value="11">11</option>
                                                                                                <option value="12">12 </option>'>
<CFSET CCYSelect='                                                                        
                                                                                                <option value="2002">2002</option>
                                                                                                <option value="2003">2003</option>
                                                                                                <option value="2004">2004</option>

                                                                                                <option value="2005">2005</option>
                                                                                                <option value="2006">2006</option>
                                                                                                <option value="2007">2007</option>
                                                                                                <option value="2008">2008</option>
                                                                                                <option value="2009">2009</option>
                                                                                                <option value="2010">2010</option>
                                                                                                <option value="2011">2011</option>
                                                                                                <option value="2012">2012</option>'>


<CFIF IsStruct(Session.FormInfo)>
<CFIF StructKeyExists(Session.FormInfo, "ship_to_state") IS "true">
<CFSET ShipStateProv=Replace('#StateProv#', 'value="#StructFind(Session.FormInfo, "ship_to_state")#"', 'value="#StructFind(Session.FormInfo, "ship_to_state")#" selected')>
<CFSET ShipCountry=Replace('#Countries#', 'value="#StructFind(Session.FormInfo, "ship_to_country")#"', 'value="#StructFind(Session.FormInfo, "ship_to_country")#" selected')>
</CFIF>
<CFSET BillStateProv=Replace('#StateProv#', 'value="#StructFind(Session.FormInfo, "bill_to_state")#"', 'value="#StructFind(Session.FormInfo, "bill_to_state")#" selected')>
<CFSET BillCountry=Replace('#Countries#', 'value="#StructFind(Session.FormInfo, "bill_to_country")#"', 'value="#StructFind(Session.FormInfo, "bill_to_country")#" selected')>
</CFIF>

<HTML>
<HEAD>


<style type="text/css">
<!--
a { color: cc0000; text-decoration: none }
a:hover { color: gray; text-decoration: none }.style2 {
      font-size: xx-small;
      font-family: Verdana, Arial, Helvetica, sans-serif;
      color: #000099;
}
.style5 {
      font-family: Verdana, Arial, Helvetica, sans-serif;
      font-size: 10px;
      color: #000000;
      font-weight: bold;
}
-->
</style>
            <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
            <csscriptdict>
                  <script><!--
CSInit = new Array;
function CSScriptInit() {
if(typeof(skipPage) != "undefined") { if(skipPage) return; }
idxArray = new Array;
for(var i=0;i<CSInit.length;i++)
      idxArray[i] = i;
CSAction2(CSInit, idxArray);}
CSAg = window.navigator.userAgent; CSBVers = parseInt(CSAg.charAt(CSAg.indexOf("/")+1),10);
function IsIE() { return CSAg.indexOf("MSIE") > 0;}
function CSIEStyl(s) { return document.all.tags("div")[s].style; }
function CSNSStyl(s) { return CSFindElement(s,0); }
function CSFindElement(n,ly) { if (CSBVers < 4) return document[n];
      var curDoc = ly ? ly.document : document; var elem = curDoc[n];
      if (!elem) { for (var i=0;i<curDoc.layers.length;i++) {
            elem = CSFindElement(n,curDoc.layers[i]); if (elem) return elem; }}
      return elem;
}

function CSClickReturn () {
      var bAgent = window.navigator.userAgent;
      var bAppName = window.navigator.appName;
      if ((bAppName.indexOf("Explorer") >= 0) && (bAgent.indexOf("Mozilla/3") >= 0) && (bAgent.indexOf("Mac") >= 0))
            return true; // dont follow link
      else return false; // dont follow link
}

function CSButtonReturn () {
      var bAgent = window.navigator.userAgent;
      var bAppName = window.navigator.appName;
      if ((bAppName.indexOf("Explorer") >= 0) && (bAgent.indexOf("Mozilla/3") >= 0) && (bAgent.indexOf("Mac") >= 0))
            return false; // follow link
      else return true; // follow link
}

CSIm = new Object();
function CSIShow(n,i) {
      if (document.images) {
            if (CSIm[n]) {
                  var img = (!IsIE()) ? CSFindElement(n,0) : document[n];
                  if (img && typeof(CSIm[n][i].src) != "undefined") {img.src = CSIm[n][i].src;}
                  if(i != 0)
                        self.status = CSIm[n][3];
                  else
                        self.status = " ";
                  return true;
            }
      }
      return false;
}
function CSILoad(action) {
      im = action[1];
      if (document.images) {
            CSIm[im] = new Object();
            for (var i=2;i<5;i++) {
                  if (action[i] != '') { CSIm[im][i-2] = new Image(); CSIm[im][i-2].src = action[i]; }
                  else CSIm[im][i-2] = 0;
            }
            CSIm[im][3] = action[5];
      }
}
CSStopExecution = false;
function CSAction(array) {
      return CSAction2(CSAct, array);
}
function CSAction2(fct, array) {
      var result;
      for (var i=0;i<array.length;i++) {
            if(CSStopExecution) return false;
            var actArray = fct[array[i]];
            if (actArray == null) return false;
            var tempArray = new Array;
            for(var j=1;j<actArray.length;j++) {
                  if((actArray[j] != null) && (typeof(actArray[j]) == "object") && (actArray[j].length == 2)) {
                        if(actArray[j][0] == "VAR") {
                              tempArray[j] = CSStateArray[actArray[j][1]];
                        }
                        else {
                              if(actArray[j][0] == "ACT") {
                                    tempArray[j] = CSAction(new Array(new String(actArray[j][1])));
                              }
                        else
                              tempArray[j] = actArray[j];
                        }
                  }
                  else
                        tempArray[j] = actArray[j];
            }                  
            result = actArray[0](tempArray);
      }
      return result;
}
CSAct = new Object;


// --></script>
            </csscriptdict>
            <csactiondict>
                  <script>
<!--
<!--
CSInit[CSInit.length] = new Array(CSILoad,/*CMP*/'button',/*URL*/'Images/Navigation-Gray_01.gif',/*URL*/'Images/Navigation-Red_01.gif',/*URL*/'','');
CSInit[CSInit.length] = new Array(CSILoad,/*CMP*/'View Cart',/*URL*/'images/Navigation-Gray_02.gif',/*URL*/'Images/Navigation-Red_02.gif',/*URL*/'','');
CSInit[CSInit.length] = new Array(CSILoad,/*CMP*/'New Arrivals',/*URL*/'images/Navigation-Gray_03.gif',/*URL*/'Images/Navigation-Red_03.gif',/*URL*/'','');
CSInit[CSInit.length] = new Array(CSILoad,/*CMP*/'Monthly Specials',/*URL*/'images/Navigation-Gray_04.gif',/*URL*/'Images/Navigation-Red_04.gif',/*URL*/'','');
CSInit[CSInit.length] = new Array(CSILoad,/*CMP*/'Top Ten Bestsellers',/*URL*/'images/Navigation-Gray_05.gif',/*URL*/'Images/Navigation-Red_05.gif',/*URL*/'','');
CSInit[CSInit.length] = new Array(CSILoad,/*CMP*/'Closeout Sale',/*URL*/'images/Navigation-Gray_06.gif',/*URL*/'Images/Navigation-Red_06.gif',/*URL*/'','');
CSInit[CSInit.length] = new Array(CSILoad,/*CMP*/'button7',/*URL*/'Images/sidebarred_01.gif',/*URL*/'Images/sidebargray_01.gif',/*URL*/'','');
CSInit[CSInit.length] = new Array(CSILoad,/*CMP*/'button8',/*URL*/'Images/sidebarred_02.gif',/*URL*/'Images/sidebargray_02.gif',/*URL*/'','');
CSInit[CSInit.length] = new Array(CSILoad,/*CMP*/'button9',/*URL*/'Images/sidebarred_03.gif',/*URL*/'Images/sidebargray_03.gif',/*URL*/'','');
CSInit[CSInit.length] = new Array(CSILoad,/*CMP*/'button2',/*URL*/'Images/Maillstred.gif',/*URL*/'Images/Maillstgray.gif',/*URL*/'','');

// -->

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
</script>
            </csactiondict>
</HEAD>
<BODY BGCOLOR=#FFFFFF onload="CSScriptInit();" marginHeight="0" leftMargin="0" topMargin="0">

<TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0>
      <TR>
            <TD COLSPAN=2 bgcolor="white" height="60">
                              <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                    <tr>
                                          <td align="left" width="50%"><img src="Images/banner_left.jpg" width="334" height="60" border="0"></td>
                                          <td align="right" width="50%"><img src="Images/banner_right.jpg" width="360" height="60" border="0"></td>
                                    </tr>
                              </table>
                        </TD>
      </TR>
      <TR height="1">
            <TD HEIGHT=1 COLSPAN=2>
                  <IMG SRC="images/.jpg" WIDTH=700 HEIGHT=1></TD>
      </TR>
      <TR height="21">
            <TD HEIGHT=21 COLSPAN=2 bgcolor="#a9a9a9" align="right">
                              <table border="0" cellpadding="0" cellspacing="0">
                                    <tr>
                                          <td><font color="white" face="Verdana,Arial,Helvetica,sans-serif" size="2"><b></b></font></td>
                                          <td width="15"></td>
                                    </tr>
                              </table>
                        </TD>
      </TR>
                  <TR height="1">
            <TD HEIGHT=1 COLSPAN=2>
                  <IMG SRC="images/.jpg" WIDTH=700 HEIGHT=1></TD>
      </TR>
                  <TR height="2">
                        <TD HEIGHT=2 COLSPAN=2 bgcolor="#003366" align="left">
                              <div align="left">
                                    <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                          <tr>
                                                <td valign="bottom" align="left">
                                                      <table border="0" cellpadding="2" cellspacing="0">
                                                            <tr>
                                                                  <td width="5"></td>
                                                                  <form name="FormName" action="results.cfm?action=search" method="post">
                                                                  <td>
                                                                              <b><font size="2" color="#FFFFFF" face="Verdana,Arial,Helvetica,sans-serif">Quick Search</font><font face="Verdana, Arial, Helvetica, sans-serif" size="2" color="#FFFFFF"> <input type="text" name="terms" value="" size="24"> </font><font size="2" color="#FFFFFF" face="Verdana,Arial,Helvetica,sans-serif">by</font><font face="Verdana, Arial, Helvetica, sans-serif" size="2" color="#FFFFFF"> <select name="select">
                                                                                                <option value="title" selected>Title</option>
                                                                                                <option value="isbn">ISBN</option>
                                                                                                <option value="keywords">Keyword</option>
                                                                                                <option value="publisher">Publisher</option>
                                                                                                <option value="author">Author</option>
                                                                                          </select> <input type="submit" value="Go!" name="submit">&nbsp; &nbsp; </font></b>
                                                                  </td>
                                                                  </form>
                                                            </tr>
                                                      </table>
                                                </td>
                                                <td valign="middle" align="right"><img src="Images/SecureSite.gif" width="89" height="15" border="0"></td>
                                          </tr>
                                    </table>
                              </div>
                        </TD>
                  </TR>
                  <TR height="1">
            <TD HEIGHT=1 COLSPAN=2>
                  <IMG SRC="../../Test%20Table/even%20newer%20test%20table/images/.jpg" WIDTH=700 HEIGHT=1></TD>
      </TR>
                  <TR height="18">
            <TD bgcolor="#cc0000" align="center" valign="top" height="18" width="10%"><img src="Images/spacer.gif" width="1" height="1" border="0"></TD>
            <TD bgcolor="#dcdcdc" align="center" valign="bottom" height="18">
                              <TABLE WIDTH=531 BORDER=0 CELLPADDING=0 CELLSPACING=0>
                                    <TR>
                                          <TD><csobj w="52" h="21" t="Button" ht="Images/Navigation-Red_01.gif"><a href="index.cfm?action=home" onmouseover="return CSIShow(/*CMP*/'button',1)" onmouseout="return CSIShow(/*CMP*/'button',0)" onclick="return CSButtonReturn()"><img src="Images/Navigation-Gray_01.gif" width="52" height="21" name="button" border="0"></a></csobj></TD>
                                          <TD><csobj w="69" h="21" t="Button" ht="Images/Navigation-Red_02.gif"><a href="cart.cfm" onmouseover="return CSIShow(/*CMP*/'View Cart',1)" onmouseout="return CSIShow(/*CMP*/'View Cart',0)" onclick="return CSButtonReturn()"><img src="images/Navigation-Gray_02.gif" width="69" height="21" name="View Cart" border="0"></a></csobj></TD>
                                          <TD><csobj w="87" h="21" t="Button" ht="Images/Navigation-Red_03.gif"><a href="results.cfm?action=new_arrivals" onmouseover="return CSIShow(/*CMP*/'New Arrivals',1)" onmouseout="return CSIShow(/*CMP*/'New Arrivals',0)" onclick="return CSButtonReturn()"><img src="images/Navigation-Gray_03.gif" width="87" height="21" name="New Arrivals" border="0"></a></csobj></TD>
                                          <TD><csobj w="111" h="21" t="Button" ht="Images/Navigation-Red_04.gif"><a href="results.cfm?action=specials" onmouseover="return CSIShow(/*CMP*/'Monthly Specials',1)" onmouseout="return CSIShow(/*CMP*/'Monthly Specials',0)" onclick="return CSButtonReturn()"><img src="images/Navigation-Gray_04.gif" width="111" height="21" name="Monthly Specials" border="0"></a></csobj></TD>
                                          <TD><csobj w="119" h="21" t="Button" ht="Images/Navigation-Red_05.gif"><a href="https://www.bargainbookco.com/results.cfm?action=bestsellers" onmouseover="return CSIShow(/*CMP*/'Top Ten Bestsellers',1)" onmouseout="return CSIShow(/*CMP*/'Top Ten Bestsellers',0)" onclick="return CSButtonReturn()"><img src="images/Navigation-Gray_05.gif" width="119" height="21" name="Top Ten Bestsellers" border="0"></a></csobj></TD>
                                          <TD><csobj w="93" h="21" t="Button" ht="Images/Navigation-Red_06.gif"><a href="results.cfm?action=closeout" onmouseover="return CSIShow(/*CMP*/'Closeout Sale',1)" onmouseout="return CSIShow(/*CMP*/'Closeout Sale',0)" onclick="return CSButtonReturn()"><img src="images/Navigation-Gray_06.gif" width="93" height="21" name="Closeout Sale" border="0"></a></csobj></TD>
                                    </TR>
                              </TABLE>
                        </TD>
      </TR>
      <TR>
                        <td bgcolor="#cc0000" valign="top" align="center" width="10%"><img src="Images/spacer.gif" width="135" height="10" border="0"><br>
                              <table width=110 border=0 cellpadding=0 cellspacing=0>
                                    <tr>
                                          <td><csobj w="110" h="21" t="Button" ht="Images/sidebargray_01.gif"><a href="faq.cfm#howorder" onmouseover="return CSIShow(/*CMP*/'button7',1)" onmouseout="return CSIShow(/*CMP*/'button7',0)" onclick="return CSButtonReturn()"><img src="Images/sidebarred_01.gif" width="110" height="40" name="button7" border="0"></a></csobj></td>
                                    </tr>
                                    <tr>
                                          <td><csobj w="110" h="20" t="Button" ht="Images/sidebargray_02.gif"><a href="faq.cfm#international" onmouseover="return CSIShow(/*CMP*/'button8',1)" onmouseout="return CSIShow(/*CMP*/'button8',0)" onclick="return CSButtonReturn()"><img src="Images/sidebarred_02.gif" width="110" height="20" name="button8" border="0"></a></csobj></td>
                                    </tr>
                                    <tr>
                                          <td><csobj w="110" h="20" t="Button" ht="Images/sidebargray_03.gif"><a href="privacy.cfm" onmouseover="return CSIShow(/*CMP*/'button9',1)" onmouseout="return CSIShow(/*CMP*/'button9',0)" onclick="return CSButtonReturn()"><img src="Images/sidebarred_03.gif" width="110" height="20" name="button9" border="0"></a></csobj></td>
                                    </tr>
                              </table>
                              <br>
                              <csobj w="110" h="20" t="Button" ht="Images/Maillstgray.gif"><a href="maillist.cfm" onmouseover="return CSIShow(/*CMP*/'button2',1)" onmouseout="return CSIShow(/*CMP*/'button2',0)" onclick="return CSButtonReturn()"><img src="Images/Maillstred.gif" width="110" height="20" name="button2" border="0"></a></csobj><br>
                              <br>
                              
                              <p><img src="Images/m_logo.gif" width="113" height="29" border="1"></p>
                              <p><a href="http://www.thawte.com/html/RETAIL/sgc/faq.html"><img src="Images/topLeft.gif" width="113" height="39" border="1"></a></p>
                        </td>
                        <td valign="top" align="center" bgcolor="white"><img src="Images/spacer.gif" width="615" height="5" border="0">
                              <table border=0 cellpadding=7 cellspacing=0 width="95%">
                                    <tr>
                                          <td width="50%" valign="top">
                                                <p><font face="Verdana,Arial,Helvetica,Geneva,San-Serif" size="4"><b>CHECKOUT</b></font></p>
                                          </td>
                                    </tr>
                              </table>
                              <table border="0" cellpadding="0" cellspacing="2" width="95%" height="5">
                                    <tr>
                                          <td bgcolor="#cc0000"><img src="Images/spacer.gif" width="5" height="4" border="0"></td>
                                    </tr>
                              </table>
                              <img src="Images/spacer.gif" width="615" height="5" border="0">
                              <table width="90%" cellpadding="0" cellspacing="0" border="0">
                                          <tr>
                                                <td width="100%" colspan="3" height="1"></td>
                                          </tr>
                                          <tr>
<!--- Main Output Area Cell --->
<!--- Output for Error Listing --->                                                      
                                                <td width="100%" colspan="3" valign="TOP">                                                
                                                      <CFIF Session.ErrorList IS NOT "">
                                                      <CFIF ListLen("Session.ErrorList") GT 0>
                                                            <TABLE Cellpadding="0" Cellspacing="0" border="0" width="100%">
                                                                  <TR>
                                                                        <td><b><font face="Verdana,Arial,Helvetica,sans-serif" color="#cc0000" size="2">The following form fields are required to process your order: </font></b>
                                                                              <UL>
                                                                                    <CFLOOP Index="Field" From=1 To=#ListLen(Session.ErrorList)#>
                                                                                          <CFOUTPUT>
                                                                                                <font face="Verdana,Arial,Helvetica,sans-serif" color="##cc0000" size="2"><b><LI>#Evaluate(ListGetAt(Session.ErrorList, "#Field#"))#</b></font>
                                                                                                
                                                                                          </CFOUTPUT>
                                                                                    </CFLOOP>
                                                                              </UL>
                                                                        </td>
                                                                  </TR>
                                                                  <TR>
                                                                        <TD height="20">
                                                                              <img src="Images/spacer.gif" width="1" height="1" border="0">
                                                                        </TD>
                                                                  </TR>
                                                            </TABLE>
                                                      </CFIF>
                                                      </CFIF>
<!--- End Error Listing Output --->      
<!--- Check for FormInfo Structure, If it exists output specified fields --->
                          <CFOUTPUT>
                                                      <form action="https://www.domainname.com/confirm.cfm" method="POST" id="form1" name="form1">                                                
                                                      <table cellpadding="0" cellspacing="0" border="0">
                                                            <tr>
                                                                  <td><img src="/gresources/cleardot.gif" width="5" height="3"></td>
                                                                  <td><img src="/gresources/cleardot.gif" width="5" height="3"></td>
                                                                  <td><img src="/gresources/cleardot.gif" width="5" height="3"></td>
                                                            </tr>
<!--- Start of Billing Information  part of form--->
                                                                                                                        <tr height="5">
                                                                  <td height="5" colspan="3"> <span class="style5">*Fields with a <font face="arial, helvetica, sans-serif" size="1"><img src="dot.gif" vspace="4" width="6" height="9"></font> by the heading require information to be entered to<br>
                                                            continue with your transaction.
                                                                    </span>
                                                                    <p class="style5"> NOTE: We will only mail your order to the same mailing address that your<br>
                                                                credit card is billed to via the United States Postal Service.</p>
                                                                  <font face="Verdana,Arial,Helvetica,Geneva,San-Serif" color="##cc0000" size="1">&nbsp;</font></td>
                                                            </tr>
                                                            <tr height="12">
                                                                  <td height="12" colspan="3"></td>
                                                            </tr>
                                                            <tr>
                                                                  <td><font face="arial, helvetica, sans-serif" size="1">First Name <img src="dot.gif" vspace="4" width="6" height="9"><br>
                                                              </font>
                                                             
                                                             
                                                            
                                                               <input type="TEXT" name="bill_to_fname" size="25" maxlength="50" >
                                                            
                                                             
                                                            
                                                              </td>
                                                                  
                                                                  
                                                                  
                                                                  <td></td>
                                                                  <td><font face="arial, helvetica, sans-serif" size="1">Last Name <img src="dot.gif" vspace="4" width="6" height="9"><br>
                                                                        </font>
                                                              <input type="TEXT" name="bill_to_lname" size="25" maxlength="50" ></td>
                                                            </tr>
                                                            <tr>
                                                                  <td height="5" colspan="3"><img src="/gresources/cleardot.gif" width="1" height="5"></td>
                                                            </tr>
                                                            <tr>
                                                                  <td colspan="3"><font face="arial, helvetica, sans-serif" size="1">Company Name (optional) <br>
                                                                        </font><input type="text" name="bill_to_company" size=50 maxlength=75 ></td>
                                                            </tr>
                                                            <tr>
                                                                  <td height="5" colspan="3"><img src="/gresources/cleardot.gif" width="1" height="5"></td>
                                                            </tr>
                                                            <tr>
                                                                  <td colspan="3"><font face="arial, helvetica, sans-serif" size="1">Address line 1 <img src="dot.gif" vspace="4" width="6" height="9"><br>
                                                                        </font>
                                                                    <input type="text" name="bill_to_addr1" size=50 maxlength=75 >
                                                                        <br>
                                                                        <font face="arial, helvetica, sans-serif" size="1">Address line 2 (optional)<br>
                                                                    </font>
                                                                        
                                                                        <input name="bill_to_addr2" type="text" size=50 maxlength=75 >
                                                                        
                                                                        
                                                                        
                                                              </td>
                                                            </tr>
                                                            <tr>
                                                                  <td height="5" colspan="3"><img src="/gresources/cleardot.gif" width="1" height="5"></td>
                                                            </tr>
                                                            <tr>
                                                                  <td><font face="arial, helvetica, sans-serif" size="1">City <img src="dot.gif" vspace="4" width="6" height="9"><br>
                                                                        </font>
                                                              <input type="text" name="bill_to_city" size=25 maxlength=50 ></td>
                                                                  <td></td>
                                                                  <td><font face="arial, helvetica, sans-serif" size="1"><cfif #session.intvalue# IS 'yes'>State<cfelse>State<img src="dot.gif" vspace="4" width="6" height="9"></cfif><br>
                                                                        </font>
                                                                        <cfparam name="session.intvalue" default="">
                                                                        <cfif #session.intvalue# IS 'yes'>
                                                                        <cfif IsStruct(Session.FormInfo)>
                                                                          <input name="bill_to_state" type="text" value=".">
                                                                        
                                                                        
                                                                        <cfelse>
                                                                        <input name="bill_to_state" type="text" value=".">
                                                                        </cfif>
                                                                        
                                                                        
                                    
                                                                        <cfelse>
                                                                        <select name="bill_to_state" size=1><CFIF IsStruct(Session.FormInfo)>#BillStateProv#<CFELSE>
                                                                              <option value="">Click to Select</option>
                                                                              <option value="AL">Alabama</option>
                                                                              <option value="AK">Alaska</option>
                                                                              <option value="AB">Alberta</option>
                                                                              <option value="AS">American Samoa</option>
                                                                              <option value="AZ">Arizona</option>
                                                                              <option value="AR">Arkansas</option>
                                                                              <option value="AA">Armed Forces - USA/Canada</option>
                                                                              <option value="AE">Armed Forces - Europe</option>
                                                                              <option value="AP">Armed Forces - Pacific</option>
                                                                              <option value="BC">British Columbia</option>
                                                                              <option value="CA">California</option>
                                                                              <option value="CO">Colorado</option>
                                                                              <option value="CT">Connecticut</option>
                                                                              <option value="DE">Delaware</option>
                                                                              <option value="DC">District of Columbia</option>
                                                                              <option value="FM">Federated States of Micronesia</option>
                                                                              <option value="FL">Florida</option>
                                                                              <option value="GA">Georgia</option>
                                                                              <option value="GU">Guam</option>
                                                                              <option value="HI">Hawaii</option>
                                                                              <option value="ID">Idaho</option>
                                                                              <option value="IL">Illinois</option>
                                                                              <option value="IN">Indiana</option>
                                                                              <option value="IA">Iowa</option>
                                                                              <option value="KS">Kansas</option>
                                                                              <option value="KY">Kentucky</option>
                                                                              <option value="LA">Louisiana</option>
                                                                              <option value="ME">Maine</option>
                                                                              <option value="MB">Manitoba</option>
                                                                              <option value="MH">Marshall Islands</option>
                                                                              <option value="MD">Maryland</option>
                                                                              <option value="MA">Massachusetts</option>
                                                                              <option value="MI">Michigan</option>
                                                                              <option value="MN">Minnesota</option>
                                                                              <option value="MS">Mississippi</option>
                                                                              <option value="MO">Missouri</option>
                                                                              <option value="MT">Montana</option>
                                                                              <option value="NE">Nebraska</option>
                                                                              <option value="NV">Nevada</option>
                                                                              <option value="NB">New Brunswick</option>
                                                                              <option value="NH">New Hampshire</option>
                                                                              <option value="NJ">New Jersey</option>
                                                                              <option value="NM">New Mexico</option>
                                                                              <option value="NY">New York</option>
                                                                              <option value="NF">Newfoundland</option>
                                                                              <option value="NC">North Carolina</option>
                                                                              <option value="ND">North Dakota</option>
                                                                              <option value="MP">Northern Mariana Island</option>
                                                                              <option value="NT">Northwest Territories</option>
                                                                              <option value="NS">Nova Scotia</option>
                                                                              <option value="OH">Ohio</option>
                                                                              <option value="OK">Oklahoma</option>
                                                                              <option value="ON">Ontario</option>
                                                                              <option value="OR">Oregon</option>
                                                                              <option value="PW">Palau Island</option>
                                                                              <option value="PA">Pennsylvania</option>
                                                                              <option value="PE">Prince Edward Island</option>
                                                                              <option value="PR">Puerto Rico</option>
                                                                              <option value="QC">Quebec</option>
                                                                              <option value="RI">Rhode Island</option>
                                                                              <option value="SK">Saskatchewan</option>
                                                                              <option value="SC">South Carolina</option>
                                                                              <option value="SD">South Dakota</option>
                                                                              <option value="TN">Tennessee</option>
                                                                              <option value="TX">Texas</option>
                                                                              <option value="UT">Utah</option>
                                                                              <option value="VT">Vermont</option>
                                                                              <option value="VI">Virgin Islands</option>
                                                                              <option value="VA">Virginia</option>
                                                                              <option value="WA">Washington</option>
                                                                              <option value="WV">West Virginia</option>
                                                                              <option value="WI">Wisconsin</option>
                                                                              <option value="WY">Wyoming</option>
                                                                              <option value="YT">Yukon Territory</option>
                                                                              </CFIF>
                                                              </select>
                                                                        </cfif>
                                                                        
                                                                        
                                                                    </td>
                                                            </tr>
                                                            <tr>
                                                                  <td height="5" colspan="3"><img src="/gresources/cleardot.gif" width="1" height="5"></td>
                                                            </tr>
                                                            <tr>
                                                                  <td><font face="arial, helvetica, sans-serif" size="1">ZIP / Postal Code <img src="dot.gif" vspace="4" width="6" height="9"><br>
                                                                        </font>
                                                              <input type="text" name="bill_to_zip" maxlength=10 size=20></td>
                                                                  <td></td>
                                                                  <td><p>&nbsp;</p>
                                                                    <p><font face="arial, helvetica, sans-serif" size="1">Country <img src="dot.gif" vspace="4" width="6" height="9"><br>
                                                                        </font>
                                                                         
                                                                          <cfif #session.intvalue# IS 'yes'>
                                                                          <select name="bill_to_country" size=1>
                                                                            <CFIF IsStruct(Session.FormInfo)>
                                                                              #BillCountry#
                                                                              <CFELSE>
                                                                                      
                                                                              <Option Value="AD">Andora</option>
                                                                              <Option Value="AE">Arab Emirates</option>
                                                                              <Option Value="AF">Afghanistan</option>
                                                                              <Option Value="AG">Antigua &amp; Barbuda</option>
                                                                              <Option Value="AR">Argentina</option>
                                                                              <Option Value="AW">Aruba</option>
                                                                              <Option Value="AT">Austria</option>
                                                                              <Option Value="AU">Australia</option>
                                                                              <Option Value="BS">Bahamas</option>
                                                                              <Option Value="BH">Bahrain</option>
                                                                              <Option Value="BE">Belgium</option>
                                                                              <Option Value="BR">Brazil</option>
                                                                              <Option Value="BB">Barbados</option>
                                                                              <Option Value="CA">Canada</option>
                                                                              <Option Value="CG">Congo</option>
                                                                              <Option Value="CL">Chile</option>
                                                                              <Option Value="CN">China</option>
                                                                              <Option Value="CO">Colombia</option>
                                                                              <Option Value="CU">Cuba</option>
                                                                              <Option Value="CZ">Czech Republic</option>
                                                                              <Option Value="DK">Denmark</option>
                                                                              <Option Value="DO">Dominican Republic</option>
                                                                              <Option Value="EC">Ecuador</option>
                                                                              <Option Value="EG">Egypt</option>
                                                                              <Option Value="ET">Ethiopia</option>
                                                                              <Option Value="FR">France</option>
                                                                              <Option Value="FX">France European Territory</option>
                                                                              <Option Value="FI">Finland</option>
                                                                              <Option Value="DE">Germany</option>
                                                                              <Option Value="GB">Great Britain (UK)</option>
                                                                              <Option Value="GR">Greece</option>
                                                                              <Option Value="GL">Greenland</option>
                                                                              <Option Value="GU">Guam (US)</option>
                                                                              <Option Value="GT">Guatemala</option>
                                                                              <Option Value="HT">Haiti</option>
                                                                              <Option Value="HN">Honduras</option>
                                                                              <Option Value="HK">Hong Kong</option>
                                                                              <Option Value="HU">Hungary</option>
                                                                              <Option Value="IS">Iceland</option>
                                                                              <Option Value="IN">India</option>
                                                                              <Option Value="ID">Indonesia</option>
                                                                              <Option Value="IE">Ireland</option>
                                                                              <Option Value="IL">Israel</option>
                                                                              <Option Value="AT">Italy</option>
                                                                              <Option Value="JM">Jamaica</option>
                                                                              <Option Value="JP">Japan</option>
                                                                              <Option Value="KP">North Korea</option>
                                                                              <Option Value="KR">South Korea</option>
                                                                              <Option Value="KW">Kuwait</option>
                                                                              <Option Value="MN">Mongolia</option>
                                                                              <Option Value="MX">Mexico</option>
                                                                              <Option Value="NO">Norway</option>
                                                                              <Option Value="NL">Netherlands</option>
                                                                              <Option Value="NZ">New Zealand</option>
                                                                              <Option Value="PA">Panama</option>
                                                                              <Option Value="PE">Peru</option>
                                                                              <Option Value="PH">Philippines</option>
                                                                              <Option Value="PL">Poland</option>
                                                                              <Option Value="PR">Puerto Rico</option>
                                                                              <Option Value="RO">Romania</option>
                                                                              <Option Value="SA">Saudi Arabia</option>
                                                                              <Option Value="SG">Singapore</option>
                                                                              <Option Value="SE">Sweeden</option>
                                                                              <Option Value="ZA">South Africa</option>
                                                                              <Option Value="SU">Soviet Union</option>
                                                                              <Option Value="SD">Sudan</option>
                                                                              <Option Value="CH">Switzerland</option>
                                                                              <Option Value="TW">Taiwan</option>
                                                                              <Option Value="TH">Thailand</option>
                                                                              <Option Value="UK">United Kingdom</option>
                                                                              <option value="US">United States</option>
                                                                              <Option Value="VE">Venezuela</option>
                                                                              <Option Value="VI">Virgin Islands (US)</option>
                                                                              <Option Value="VN">Vietnam</option>
                                                                              <Option Value="YU">Yugoslavia</option>
                                                                                
                                                                                
                                                                                
                                                                                
                                                                              </CFIF>
                                                                        </select>
                                                                          <cfelse>
                                                                          <select name="bill_to_country" size=1>
                                                                            <CFIF IsStruct(Session.FormInfo)>
                                                                              #BillCountry#
                                                                              <CFELSE>
                                                                                      
                                                                              <option value="US" Selected>United States</option>
                                                                                <option value="CA" Selected>Canada</option>    
                                                                              </CFIF>
                                                                        </select>
                                                                              </cfif>
                                                                </p></td>
                                                            </tr>
                                                            <tr>
                                                                  <td height="5"></td>
                                                                  <td height="5"></td>
                                                                  <td height="5"></td>
                                                            </tr>
                                                            <tr>
                                                                  <td colspan="3"><font face="arial, helvetica, sans-serif" size="1">E-mail Address </font><font face="arial, helvetica, sans-serif" size="1"><img src="dot.gif" vspace="4" width="6" height="9"></font><font face="arial, helvetica, sans-serif" size="1"><br>
                                                              </font><input type="TEXT" name="bill_to_email" size="50" maxlength="75" ></td>
                                                            </tr>
                                                            <tr>
                                                                  <td height="5" colspan="3"><img src="/gresources/cleardot.gif" width="1" height="5"></td>
                                                            </tr>
                                                            <tr>
                                                                  <td height="5"></td>
                                                                  <td height="5"></td>
                                                                  <td height="5"></td>
                                                            </tr>
                                                            <tr>
                                                                  <td height="5" colspan="3"><img src="/gresources/cleardot.gif" width="1" height="5"></td>
                                                            </tr>
                                                            <tr>
                                                                  <td colspan="3"><font face="arial, helvetica, sans-serif" size="1">Phone </font><font face="arial, helvetica, sans-serif" size="1"><img src="dot.gif" vspace="4" width="6" height="9"></font><font face="arial, helvetica, sans-serif" size="1"><br>
                                                              </font><input type="TEXT" name="bill_to_phone" size="35" maxlength="20" ></td>
                                                            </tr>
                                                            <tr height="20">
                                                                  <td colspan="3" height="20"></td>
                                                            </tr>                                                      
                                                            <tr height="20">
                                                                  <td height="20" colspan="3"></td>
                                                            </tr>
                                                            <tr height="20">
                                                                  <td colspan="3" height="20"></td>
                                                            </tr>
                                                            <tr>
                                                                  <td colspan="3"><font color="##003366" size="2" face="Verdana,Arial,Helvetica,Geneva,San-Serif"><b>Select a Shipping Method </b></font><font face="arial, helvetica, sans-serif" size="1"><img src="dot.gif" vspace="4" width="6" height="9"></font></td>
                                                            </tr>
                                                            <tr height="12">
                                                                  <td colspan="3" height="12"></td>
                                                            </tr>
                                                            <tr>
                                                                  <td colspan="3">
                                                                        <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0" ALIGN="CENTER">
                                                                              <TR>
                                                                                    <TD>
                                                                                          <SELECT NAME="shipping_method" Size="3">
                                                                                                <CFIF IsStruct(Session.FormInfo) AND StructKeyExists(Session.FormInfo, "Shipping_Method")>
                                                                                                      <CFLOOP QUERY="GetShipList">
                                                                                                            <CFIF GetShipList.ID IS #Session.FormInfo["shipping_method"]#>
                                                                                                                  <OPTION VALUE="#GetShipList.ID#" Selected>#GetShipList.Method# #GetShipList.ShipTime#
                                                                                                            <CFELSE>
                                                                                                                  <OPTION VALUE="#GetShipList.ID#">#GetShipList.Method# #GetShipList.ShipTime#
                                                                                                            </CFIF>
                                                                                                      </CFLOOP>
                                                                                                <CFELSE>
                                                                                                      <CFLOOP QUERY="GetShipList">
                                                                                                            <CFPARAM NAME="SelectSet" DEFAULT="no">
                                                                                                                  <CFIF SelectSet IS "no">
                                                                                                                        <OPTION VALUE="#GetShipList.ID#" Selected>#GetShipList.Method# #GetShipList.ShipTime#
                                                                                                                        <CFSET SelectSet = "yes">
                                                                                                                  <CFELSE>
                                                                                                                        <OPTION VALUE="#GetShipList.ID#">#GetShipList.Method# #GetShipList.ShipTime#
                                                                                                                  </CFIF>
                                                                                                      </CFLOOP>
                                                                                                </cfif>
                                                                                          </SELECT>
                                                                                    </TD>
                                                                              </TR>
                                                                        </TABLE>
                                                                  </td>
                                                            </tr>
                                                            <tr height="20">
                                                                  <td colspan="3" height="20"></td>
                                                            </tr>
<!--- Start of Credit Card Information --->
                                                            <tr>
                                                                  <td colspan="3"><font color="##003366" face="Verdana,Arial,Helvetica,Geneva,San-Serif" size="2"><b>Credit Card Information </b></font><img src="/images/dot.gif" vspace="4" width="6" height="9"></td>
                                                            </tr>
                                                            <tr height="12">
                                                                  <td colspan="3" height="12"></td>
                                                            </tr>
                                                            <tr>
                                                                  <td colspan="3">
                                                                        <table cellpadding="3 " cellspacing="0" border="0">
                                                                              <tr>
                                                                                    <td width="136"><font face="arial, helvetica, sans-serif" size="1">Choose your Credit Card</font></td>
                                                                                    <td width="5"><img src="/gresources/cleardot.gif" width="5" height="3"></td>
                                                                                    <td width="288"><font face="arial, helvetica, sans-serif" size="1">Card Number:</font></td>
                                                                                    <td width="5"><img src="/gresources/cleardot.gif" width="5" height="3"></td>
                                                                                    <td width="177"><font face="arial, helvetica, sans-serif" size="1">CVV Code<br>
                                                                                      </font>  <span class="style2"><a href="##"><u onclick="MM_openBrWindow('whatiscvv.cfm','WhatisCVV','status=yes,scrollbars=yes,resizable=yes,width=550')">What is a CVV code? </u></a></span></td>
                                                                                    <td width="5"><img src="/gresources/cleardot.gif" width="5" height="3"></td>
                                                                                    <td width="117"><font face="arial, helvetica, sans-serif" size="1">Expiration Date</font></td>
                                                                              </tr>
                                                                              <tr>
                                                                                    <td><select name="cc_type" size="1">
                                                                                                <option value="MC">MasterCard</option>
                                                                                                <option value="VI">Visa</option>
                                                                                                

                                                                                          </select></td>
                                                                                    <td><img src="/gresources/cleardot.gif" width="5" height="3"></td>
                                                                                    <td><input type="TEXT" name="cc_number" maxlength="20" size="35" ></td>

                                                                                    <td><img src="/gresources/cleardot.gif" width="5" height="3"></td>
                                                                                    <td><input type="TEXT" name="cc_cvv" maxlength="3" size="3" ></td>
                                                                                    <td><img src="/gresources/cleardot.gif" width="5" height="3"></td>
                                                                                    <td><select name="cc_exp_month" size="1" maxlength="2">
                                                                                                <option value="01">01</option>
                                                                                                <option value="02">02</option>
                                                                                                <option value="03">03</option>
                                                                                                <option value="04">04</option>
                                                                                                <option value="05">05</option>
                                                                                                <option value="06">06</option>
                                                                                                <option value="07">07</option>
                                                                                                <option value="08">08</option>
                                                                                                <option value="09">09</option>
                                                                                                <option value="10">10</option>
                                                                                                <option value="11">11</option>
                                                                                                <option value="12">12</option>
                                                                                          </select>
                                                                                          <select name="cc_expire_yr" size=1 maxlength=4>
                                                                                                <option value="2004">2004</option>
                                                                                                <option value="2005">2005</option>
                                                                                                <option value="2006">2006</option>
                                                                                                <option value="2007">2007</option>
                                                                                                <option value="2008">2008</option>
                                                                                                <option value="2009">2009</option>
                                                                                                <option value="2010">2010</option>
                                                                                                <option value="2011">2011</option>
                                                                                                <option value="2012">2012</option>
                                                                                          </select></td>
                                                                              </tr>
                                                                        </table>
                                                                  </td>
                                                            </tr>
                                                            <tr height="20">
                                                                  <td colspan="3" height="20"></td>
                                                            </tr>
                                                            <tr>
                                                                  <td colspan="3"><font color="##003366" size="2" face="Verdana,Arial,Helvetica,Geneva,San-Serif"><b>Do you have a Gift Certificate or Coupon?</b></font></td>
                                                            </tr>
                                                            <tr height="12">
                                                                  <td colspan="3" height="12"></td>
                                                            </tr>
                                                            <tr>
                                                                  <td colspan="3">
                                                                        <table cellpadding="0" cellspacing="0" border="0">
                                                                              <tr>
                                                                                    <td><font face="arial, helvetica, sans-serif" size="1">&nbsp;</font></td>
                                                                                    <td><img src="/gresources/cleardot.gif" width="5" height="3"></td>
                                                                                    <td><font face="arial, helvetica, sans-serif" size="1">Enter Validation Number</font></td>
                                                                              </tr>
                                                                              <tr>
                                                                                    <td><b><font face="Verdana,Arial,Helvetica,sans-serif" size="2">Bargain Book Coupon</font></b></td>
                                                                                    <td><img src="/gresources/cleardot.gif" width="5" height="3"></td>
                                                                                    <td><input type="TEXT" name="CouponNum" size="20" ></td>
                                                                              </tr>
                                                                        </table>
                                                                  </td>
                                                            </tr>
                                                            <tr height="12">
                                                                  <td colspan="3" height="12"></td>
                                                            </tr>
                                                            <tr>
                                                                  <td colspan="3"><input type="submit" name="confirm" value="Proceed to Order Confirmation" onclick="verify();"></td>
                                                            </tr>
                                                      </table>
                                                    <img src="Images/spacer.gif" width="615" height="10" border="0">
                                                    </td>
                                          </tr>
                                    
                              </table>

                                              </form>
                              </CFOUTPUT>
                              

                              </td>
                  </TR>
      <TR height="18">
                        <td rowspan="3" bgcolor="#cc0000" width="10%"><img src="Images/spacer.gif" width="1" height="1" border="0"></td>
                        <TD HEIGHT=18 bgcolor="#003366" align="center">
                              <TABLE WIDTH=192 BORDER=0 CELLPADDING=0 CELLSPACING=0>
                                    <TR>
                                          <TD><a href="info.cfm"><IMG SRC="Images/bluebar_01.gif" border="0"></a></TD>
                                          <TD><a href="info.cfm#retail"><IMG SRC="Images/bluebar_02.gif" border="0"></a></TD>
                                          <TD><a href="mailto:info@.com"><IMG SRC="Images/bluebar_03.gif" border="0"></a></TD>
                                    </TR>
                              </TABLE>
                        </TD>
      </TR>
      <TR>
                        <TD>
                  <IMG SRC="../../Test%20Table/even%20newer%20test%20table/images/.jpg" WIDTH=565 HEIGHT=1></TD>
                  </TR>
      <TR height="21">
                        <TD HEIGHT=21 bgcolor="#dcdcdc" align="center"><font face="Verdana,Arial,Helvetica,Geneva,San-Serif" color="black" size="1"><a href="index.cfm?action=home">Home</a></font><font face="Verdana,Arial,Helvetica,Geneva,San-Serif" size="1"> | </font><font face="Verdana,Arial,Helvetica,Geneva,San-Serif" color="#cc0000" size="1"><a href="cart.cfm">View Cart </a></font><font face="Verdana,Arial,Helvetica,Geneva,San-Serif" size="1">| </font><font face="Verdana,Arial,Helvetica,Geneva,San-Serif" color="#cc0000" size="1"><a href="results.cfm?action=new_arrivals">New Arrivals</a></font><font face="Verdana,Arial,Helvetica,Geneva,San-Serif" size="1"> | </font><font face="Verdana,Arial,Helvetica,Geneva,San-Serif" color="#cc0000" size="1"><a href="results.cfm?action=specials">Monthly Specials</a></font><font face="Verdana,Arial,Helvetica,Geneva,San-Serif" size="1"> | </font><font face="Verdana,Arial,Helvetica,Geneva,San-Serif" color="#cc0000" size="1"><a href="results.cfm?action=bestsellers">Top 10 Bestsellers</a></font><font face="Verdana,Arial,Helvetica,Geneva,San-Serif" size="1"> | </font><font face="Verdana,Arial,Helvetica,Geneva,San-Serif" color="#cc0000" size="1"><a href="results.cfm?action=closeout">Closeout Sale</a></font></TD>
                  </TR>
</TABLE>
</BODY>
</HTML>

<element></element>
0
Comment
Question by:bluskyGuy
10 Comments
 
LVL 17

Accepted Solution

by:
Tacobell777 earned 500 total points
ID: 12033569
you'll have to submit the form to itself, something like

<cfparam name="form.firstName" default="" />

<cfif isDefined("form.btnSubmit")>
do error checking and other actions, if all fine do cflocation to relocate to another page of confirmation
</cfif>

<form ..>

<input type="text" name="firstName" value="#form.firstName#" />

<input type="submit" name="btnSubmit" value="submit" />
0
 

Expert Comment

by:osr3v
ID: 12033571
Try this JS code for your script.

<SCRIPT LANGUAGE="JavaScript">

function verify() {
var themessage = "";
if (document.form1.BILL_TO_ADDR1.value=="") {
themessage = themessage + " - Address 1 Field";
}
if (document.form1.Bill_to_city.value=="") {
themessage = themessage + " -  City";
}
if (document.form1.Bill_to_country.value=="") {
themessage = themessage + " - Country";
}
if (document.form1.Bill_to_email.value=="") {
themessage = themessage + " - Email Address";
}
if (document.form1.Bill_to_fname.value=="") {
themessage = themessage + " - First Name";
}
if (document.form1.Bill_to_lname.value=="") {
themessage = themessage + " - Last Name";
}
if (document.form1.Bill_to_phone.value=="") {
themessage = themessage + " - Phone";
}
if (document.form1.Bill_to_state.value=="") {
themessage = themessage + " - State";
}
if (document.form1.Bill_to_zip.value=="") {
themessage = themessage + " - Zip Code";
}
if (document.form1.CC_NUMBER.value=="") {
themessage = themessage + " - Credit Card Number";
}
if (document.form1.CC_CVV.value=="") {
themessage = themessage + " - CVV Code";
}
if (themessage != "") {
themessage = "You are required to complete the following fields:" +
missinginfo + "\n_____________________________" +
"\nPlease re-enter and submit again!";
alert(missinginfo);
return false;
}
else return true;
}
//  End -->
</script>
0
 

Expert Comment

by:osr3v
ID: 12033601
Additional note:

Instead of using  onclick="verify();" in the submit use  onsubmit="return verify();" in the <form...> tag.
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 

Expert Comment

by:osr3v
ID: 12033610
Argh!  The if/else statement should look like this (wrong variable in the alert call):

if (themessage != "") {
themessage = "You are required to complete the following fields:" +
missinginfo + "\n_____________________________" +
"\nPlease re-enter and submit again!";
alert(themessage);
return false;
}
else return true;
}


Sorry about that.  It's 5am my time.  I need to sleep before answering these things!
0
 

Author Comment

by:bluskyGuy
ID: 12037246
Thanks for the suggestions. Yea, the page is still acting weird and is NOT saving any of the data previosly entered in the form fields. Any other ideas?

Thanks,
Rick
0
 

Author Comment

by:bluskyGuy
ID: 12037284
When the form is submitted, it send them to a confirm.cfm page...here are the contents of that page.

Also, how would you go about taking items in a structure and making them session variables? On this confirm.cfm page, it lists the items of the structure.





<!--- Check to see if Database is being updated --->


<CFIF IsDefined("change")>
      <CFLOCATION URL="https://www.domain.com/new-checkout.cfm">
</CFIF>

<CFIF NOT IsDefined("Form.FieldNames")>
      <CFLOCATION URL="http://www.domain.com/cart.cfm">
</CFIF>

<CFIF IsStruct("Session.FormInfo")>
      <CFLOOP COLLECTION=#form# Item="key">
            <CFOUTPUT>
                  <CFSET Result = StructInsert(Session.FormInfo, "#key#", #Evaluate("form."&#key#)#, True)>
            </CFOUTPUT>
      </CFLOOP>
<CFELSE>
      <CFSET Session.FormInfo=StructNew()>
      <CFLOOP COLLECTION=#form# Item="key">
            <CFOUTPUT>
                  <CFSET Result = StructInsert(Session.FormInfo, "#key#", #Evaluate("form."&#key#)#, True)>
            </CFOUTPUT>
      </CFLOOP>
</CFIF>

<CFSET CheckList="BILL_TO_ADDR1,BILL_TO_CITY,BILL_TO_COUNTRY,BILL_TO_FNAME,BILL_TO_LNAME,BILL_TO_PHONE,BILL_TO_STATE,BILL_TO_EMAIL,BILL_TO_ZIP,CC_NUMBER,CC_CVV">
<CFSET Session.ErrorList="">
<CFLOOP Index="Field" List="#CheckList#">
      <CFIF Evaluate("Form."&Field) IS "">
            <CFSET Session.ErrorList=ListAppend("#Session.ErrorList#", "#Field#")>
      </CFIF>
</CFLOOP>
<CFIF Session.ErrorList IS NOT "">
      <CFLOCATION URL="new-checkout.cfm">
</CFIF>

<CFIF form.CouponNum IS NOT "">
<CFQUERY Name="ValidCoupon" Datasource="bbcSQL">
SELECT * FROM coupon WHERE coupon.serial_number = '#StructFind(Session.FormInfo, "CouponNum")#'
</CFQUERY>
      <CFIF ValidCoupon.RecordCount IS 1>
            <CFIF DateCompare(ValidCoupon.start_date, Now(), "d") GTE 0 AND DateCompare(ValidCoupon.end_date, Now(), "d") LTE 0>
                  <CFIF validcoupon.percentage IS "yes">
                        <CFSET session.subtotal=(Session.subtotal-Evaluate(ValidCoupon.discount*Session.SubTotal))>
                        <CFSET Session.DiscAmnt=Evaluate(ValidCoupon.discount*Session.SubTotal)>
                  <CFELSE>
                        <CFSET session.subtotal=Evaluate(session.subtotal-ValidCoupon.discount)>
                        <CFSET Session.DiscAmnt=ValidCoupon.discount>
                        <CFIF session.subtotal LT 0>
                              <CFSET session.subtotal=0>
                        </CFIF>
                  </CFIF>
                  <CFSET IsValidCoupon = "yes">
            </CFIF>
      </CFIF>
</CFIF>

<CFQUERY Name="ShipAmount" Datasource="bbcSQL">
SELECT * FROM shipping WHERE ID = #StructFind(Session.FormInfo, "shipping_method")#
</CFQUERY>
<CFIF Session.TotNumItem GT 1>
      <CFSET Session.ShipTotal=Evaluate(#ShipAmount.FirstItem# + ((Session.TotNumItem - 1) * #ShipAmount.EachAdditional#))>
<CFELSE>
      <CFSET Session.ShipTotal=#ShipAmount.FirstItem#>
</CFIF>

<CFIF StructFind(Session.FormInfo, "bill_to_state") IS "WA">
      <CFSET Session.TaxTotal=Evaluate(0.082 * (Session.ShipTotal + Session.Subtotal))>
<CFELSE>
      <CFSET Session.TaxTotal=0>
</CFIF>

<CFSET Session.TotalDue=decimalFormat(Evaluate((Session.Subtotal + Session.ShipTotal) + Session.TaxTotal))>

<HTML>
<HEAD>
<TITLE>Discount Computer Books from--Bargain Book Co.</TITLE>

<style type="text/css"><!--
a { color: cc0000; text-decoration: none }
a:hover { color: gray; text-decoration: none }-->
</style>
            <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<csscriptdict>
      <script><!--
CSInit = new Array;
function CSScriptInit() {
if(typeof(skipPage) != "undefined") { if(skipPage) return; }
idxArray = new Array;
for(var i=0;i<CSInit.length;i++)
      idxArray[i] = i;
CSAction2(CSInit, idxArray);}
CSAg = window.navigator.userAgent; CSBVers = parseInt(CSAg.charAt(CSAg.indexOf("/")+1),10);
function IsIE() { return CSAg.indexOf("MSIE") > 0;}
function CSIEStyl(s) { return document.all.tags("div")[s].style; }
function CSNSStyl(s) { return CSFindElement(s,0); }
function CSFindElement(n,ly) { if (CSBVers < 4) return document[n];
      var curDoc = ly ? ly.document : document; var elem = curDoc[n];
      if (!elem) { for (var i=0;i<curDoc.layers.length;i++) {
            elem = CSFindElement(n,curDoc.layers[i]); if (elem) return elem; }}
      return elem;
}

function CSClickReturn () {
      var bAgent = window.navigator.userAgent;
      var bAppName = window.navigator.appName;
      if ((bAppName.indexOf("Explorer") >= 0) && (bAgent.indexOf("Mozilla/3") >= 0) && (bAgent.indexOf("Mac") >= 0))
            return true; // dont follow link
      else return false; // dont follow link
}

function CSButtonReturn () {
      var bAgent = window.navigator.userAgent;
      var bAppName = window.navigator.appName;
      if ((bAppName.indexOf("Explorer") >= 0) && (bAgent.indexOf("Mozilla/3") >= 0) && (bAgent.indexOf("Mac") >= 0))
            return false; // follow link
      else return true; // follow link
}

CSIm = new Object();
function CSIShow(n,i) {
      if (document.images) {
            if (CSIm[n]) {
                  var img = (!IsIE()) ? CSFindElement(n,0) : document[n];
                  if (img && typeof(CSIm[n][i].src) != "undefined") {img.src = CSIm[n][i].src;}
                  if(i != 0)
                        self.status = CSIm[n][3];
                  else
                        self.status = " ";
                  return true;
            }
      }
      return false;
}
function CSILoad(action) {
      im = action[1];
      if (document.images) {
            CSIm[im] = new Object();
            for (var i=2;i<5;i++) {
                  if (action[i] != '') { CSIm[im][i-2] = new Image(); CSIm[im][i-2].src = action[i]; }
                  else CSIm[im][i-2] = 0;
            }
            CSIm[im][3] = action[5];
      }
}
CSStopExecution = false;
function CSAction(array) {
      return CSAction2(CSAct, array);
}
function CSAction2(fct, array) {
      var result;
      for (var i=0;i<array.length;i++) {
            if(CSStopExecution) return false;
            var actArray = fct[array[i]];
            if (actArray == null) return false;
            var tempArray = new Array;
            for(var j=1;j<actArray.length;j++) {
                  if((actArray[j] != null) && (typeof(actArray[j]) == "object") && (actArray[j].length == 2)) {
                        if(actArray[j][0] == "VAR") {
                              tempArray[j] = CSStateArray[actArray[j][1]];
                        }
                        else {
                              if(actArray[j][0] == "ACT") {
                                    tempArray[j] = CSAction(new Array(new String(actArray[j][1])));
                              }
                        else
                              tempArray[j] = actArray[j];
                        }
                  }
                  else
                        tempArray[j] = actArray[j];
            }                  
            result = actArray[0](tempArray);
      }
      return result;
}
CSAct = new Object;


// --></script>
</csscriptdict>
<csactiondict>
      <script><!--
CSInit[CSInit.length] = new Array(CSILoad,/*CMP*/'button',/*URL*/'Images/Navigation-Gray_01.gif',/*URL*/'Images/Navigation-Red_01.gif',/*URL*/'','');
CSInit[CSInit.length] = new Array(CSILoad,/*CMP*/'View Cart',/*URL*/'images/Navigation-Gray_02.gif',/*URL*/'Images/Navigation-Red_02.gif',/*URL*/'','');
CSInit[CSInit.length] = new Array(CSILoad,/*CMP*/'New Arrivals',/*URL*/'images/Navigation-Gray_03.gif',/*URL*/'Images/Navigation-Red_03.gif',/*URL*/'','');
CSInit[CSInit.length] = new Array(CSILoad,/*CMP*/'Monthly Specials',/*URL*/'images/Navigation-Gray_04.gif',/*URL*/'Images/Navigation-Red_04.gif',/*URL*/'','');
CSInit[CSInit.length] = new Array(CSILoad,/*CMP*/'Top Ten Bestsellers',/*URL*/'images/Navigation-Gray_05.gif',/*URL*/'Images/Navigation-Red_05.gif',/*URL*/'','');
CSInit[CSInit.length] = new Array(CSILoad,/*CMP*/'Closeout Sale',/*URL*/'images/Navigation-Gray_06.gif',/*URL*/'Images/Navigation-Red_06.gif',/*URL*/'','');
CSInit[CSInit.length] = new Array(CSILoad,/*CMP*/'button7',/*URL*/'Images/sidebarred_01.gif',/*URL*/'Images/sidebargray_01.gif',/*URL*/'','');
CSInit[CSInit.length] = new Array(CSILoad,/*CMP*/'button8',/*URL*/'Images/sidebarred_02.gif',/*URL*/'Images/sidebargray_02.gif',/*URL*/'','');
CSInit[CSInit.length] = new Array(CSILoad,/*CMP*/'button9',/*URL*/'Images/sidebarred_03.gif',/*URL*/'Images/sidebargray_03.gif',/*URL*/'','');
CSInit[CSInit.length] = new Array(CSILoad,/*CMP*/'button2',/*URL*/'Images/Maillstred.gif',/*URL*/'Images/Maillstgray.gif',/*URL*/'','');

// --></script>
</csactiondict>

            <csscriptdict>
                  <script><!--
CSInit = new Array;
function CSScriptInit() {
if(typeof(skipPage) != "undefined") { if(skipPage) return; }
idxArray = new Array;
for(var i=0;i<CSInit.length;i++)
      idxArray[i] = i;
CSAction2(CSInit, idxArray);}
CSAg = window.navigator.userAgent; CSBVers = parseInt(CSAg.charAt(CSAg.indexOf("/")+1),10);
function IsIE() { return CSAg.indexOf("MSIE") > 0;}
function CSIEStyl(s) { return document.all.tags("div")[s].style; }
function CSNSStyl(s) { return CSFindElement(s,0); }
function CSFindElement(n,ly) { if (CSBVers < 4) return document[n];
      var curDoc = ly ? ly.document : document; var elem = curDoc[n];
      if (!elem) { for (var i=0;i<curDoc.layers.length;i++) {
            elem = CSFindElement(n,curDoc.layers[i]); if (elem) return elem; }}
      return elem;
}

function CSClickReturn () {
      var bAgent = window.navigator.userAgent;
      var bAppName = window.navigator.appName;
      if ((bAppName.indexOf("Explorer") >= 0) && (bAgent.indexOf("Mozilla/3") >= 0) && (bAgent.indexOf("Mac") >= 0))
            return true; // dont follow link
      else return false; // dont follow link
}

function CSButtonReturn () {
      var bAgent = window.navigator.userAgent;
      var bAppName = window.navigator.appName;
      if ((bAppName.indexOf("Explorer") >= 0) && (bAgent.indexOf("Mozilla/3") >= 0) && (bAgent.indexOf("Mac") >= 0))
            return false; // follow link
      else return true; // follow link
}

CSIm = new Object();
function CSIShow(n,i) {
      if (document.images) {
            if (CSIm[n]) {
                  var img = (!IsIE()) ? CSFindElement(n,0) : document[n];
                  if (img && typeof(CSIm[n][i].src) != "undefined") {img.src = CSIm[n][i].src;}
                  if(i != 0)
                        self.status = CSIm[n][3];
                  else
                        self.status = " ";
                  return true;
            }
      }
      return false;
}
function CSILoad(action) {
      im = action[1];
      if (document.images) {
            CSIm[im] = new Object();
            for (var i=2;i<5;i++) {
                  if (action[i] != '') { CSIm[im][i-2] = new Image(); CSIm[im][i-2].src = action[i]; }
                  else CSIm[im][i-2] = 0;
            }
            CSIm[im][3] = action[5];
      }
}
CSStopExecution = false;
function CSAction(array) {
      return CSAction2(CSAct, array);
}
function CSAction2(fct, array) {
      var result;
      for (var i=0;i<array.length;i++) {
            if(CSStopExecution) return false;
            var actArray = fct[array[i]];
            if (actArray == null) return false;
            var tempArray = new Array;
            for(var j=1;j<actArray.length;j++) {
                  if((actArray[j] != null) && (typeof(actArray[j]) == "object") && (actArray[j].length == 2)) {
                        if(actArray[j][0] == "VAR") {
                              tempArray[j] = CSStateArray[actArray[j][1]];
                        }
                        else {
                              if(actArray[j][0] == "ACT") {
                                    tempArray[j] = CSAction(new Array(new String(actArray[j][1])));
                              }
                        else
                              tempArray[j] = actArray[j];
                        }
                  }
                  else
                        tempArray[j] = actArray[j];
            }                  
            result = actArray[0](tempArray);
      }
      return result;
}
CSAct = new Object;


// --></script>
            </csscriptdict>
            <csactiondict>
                  <script><!--
CSInit[CSInit.length] = new Array(CSILoad,/*CMP*/'button',/*URL*/'Images/Navigation-white_01.gif',/*URL*/'',/*URL*/'','');
CSInit[CSInit.length] = new Array(CSILoad,/*CMP*/'View Cart',/*URL*/'images/Navigation-Gray_02.gif',/*URL*/'Images/Navigation-Red_02.gif',/*URL*/'','');
CSInit[CSInit.length] = new Array(CSILoad,/*CMP*/'New Arrivals',/*URL*/'images/Navigation-Gray_03.gif',/*URL*/'Images/Navigation-Red_03.gif',/*URL*/'','');
CSInit[CSInit.length] = new Array(CSILoad,/*CMP*/'Monthly Specials',/*URL*/'images/Navigation-Gray_04.gif',/*URL*/'Images/Navigation-Red_04.gif',/*URL*/'','');
CSInit[CSInit.length] = new Array(CSILoad,/*CMP*/'Top Ten Bestsellers',/*URL*/'images/Navigation-Gray_05.gif',/*URL*/'Images/Navigation-Red_05.gif',/*URL*/'','');
CSInit[CSInit.length] = new Array(CSILoad,/*CMP*/'Closeout Sale',/*URL*/'images/Navigation-Gray_06.gif',/*URL*/'Images/Navigation-Red_06.gif',/*URL*/'','');

// --></script>
            </csactiondict>
      </HEAD>
<BODY BGCOLOR=#FFFFFF onload="CSScriptInit();" marginHeight="0" leftMargin="0" topMargin="0">

<TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0>
      <TR>
            <TD COLSPAN=2 bgcolor="white" height="60">
                              <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                    <tr>
                                          <td align="left" width="50%"><img src="Images/banner_left.jpg" width="334" height="60" border="0"></td>
                                          <td align="right" width="50%"><img src="Images/banner_right.jpg" width="360" height="60" border="0"></td>
                                    </tr>
                              </table>
                        </TD>
      </TR>
      <TR height="1">
            <TD HEIGHT=1 COLSPAN=2>
                  <IMG SRC="images/bargain-book-co_02.jpg" WIDTH=700 HEIGHT=1></TD>
      </TR>
      <TR height="21">
            <TD HEIGHT=21 COLSPAN=2 bgcolor="#a9a9a9" align="right">
                              <table border="0" cellpadding="0" cellspacing="0">
                                    <tr>
                                          <td><font color="white" face="Verdana,Arial,Helvetica,sans-serif" size="2"><b></b></font></td>
                                          <td width="15"></td>
                                    </tr>
                              </table>
                        </TD>
      </TR>
                  <TR height="1">
            <TD HEIGHT=1 COLSPAN=2>
                  <IMG SRC="images/bargain-book-co_04.jpg" WIDTH=700 HEIGHT=1></TD>
      </TR>
                  <TR height="2">
                        <TD HEIGHT=2 COLSPAN=2 bgcolor="#003366" align="left">
                              <div align="left">
                                    <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                          <tr>
                                                <td valign="bottom" align="left">
                                                      <table border="0" cellpadding="2" cellspacing="0">
                                                            <tr>
                                                                  <td width="5"></td>
                                                                  <form name="FormName" action="results.cfm?action=search" method="post">
                                                                  <td>
                                                                              <b><font size="2" color="#FFFFFF" face="Verdana,Arial,Helvetica,sans-serif">Quick Search</font><font face="Verdana, Arial, Helvetica, sans-serif" size="2" color="#FFFFFF"> <input type="text" name="terms" value="" size="24"> </font><font size="2" color="#FFFFFF" face="Verdana,Arial,Helvetica,sans-serif">by</font><font face="Verdana, Arial, Helvetica, sans-serif" size="2" color="#FFFFFF"> <select name="select">
                                                                                                <option value="title" selected>Title</option>
                                                                                                <option value="isbn">ISBN</option>
                                                                                                <option value="keywords">Keyword</option>
                                                                                                <option value="publisher">Publisher</option>
                                                                                                <option value="author">Author</option>
                                                                                          </select> <input type="submit" value="Go!" name="submit">&nbsp; &nbsp; </font></b>
                                                                  </td>
                                                                  </form>
                                                            </tr>
                                                      </table>
                                                </td>
                                                <td valign="middle" align="right"><img src="Images/SecureSite.gif" width="89" height="15" border="0"></td>
                                          </tr>
                                    </table>
                              </div>
                        </TD>
                  </TR>
                  <TR height="1">
            <TD HEIGHT=1 COLSPAN=2>
                  <IMG SRC="../../Test%20Table/even%20newer%20test%20table/images/.jpg" WIDTH=700 HEIGHT=1></TD>
      </TR>
                  <TR height="18">
            <TD bgcolor="#cc0000" align="center" valign="top" height="18" width="10%"><img src="Images/spacer.gif" width="1" height="1" border="0"></TD>
            <TD bgcolor="#dcdcdc" align="center" valign="bottom" height="18">
                              <TABLE WIDTH=531 BORDER=0 CELLPADDING=0 CELLSPACING=0>
                                    <TR>
                                          <TD><csobj w="52" h="21" t="Button" ht="Images/Navigation-Red_01.gif"><a href="index.cfm?action=home" onmouseover="return CSIShow(/*CMP*/'button',1)" onmouseout="return CSIShow(/*CMP*/'button',0)" onclick="return CSButtonReturn()"><img src="Images/Navigation-Gray_01.gif" width="52" height="21" name="button" border="0"></a></csobj></TD>
                                          <TD><csobj w="69" h="21" t="Button" ht="Images/Navigation-Red_02.gif"><a href="cart.cfm" onmouseover="return CSIShow(/*CMP*/'View Cart',1)" onmouseout="return CSIShow(/*CMP*/'View Cart',0)" onclick="return CSButtonReturn()"><img src="images/Navigation-Gray_02.gif" width="69" height="21" name="View Cart" border="0"></a></csobj></TD>
                                          <TD><csobj w="87" h="21" t="Button" ht="Images/Navigation-Red_03.gif"><a href="results.cfm?action=new_arrivals" onmouseover="return CSIShow(/*CMP*/'New Arrivals',1)" onmouseout="return CSIShow(/*CMP*/'New Arrivals',0)" onclick="return CSButtonReturn()"><img src="images/Navigation-Gray_03.gif" width="87" height="21" name="New Arrivals" border="0"></a></csobj></TD>
                                          <TD><csobj w="111" h="21" t="Button" ht="Images/Navigation-Red_04.gif"><a href="results.cfm?action=specials" onmouseover="return CSIShow(/*CMP*/'Monthly Specials',1)" onmouseout="return CSIShow(/*CMP*/'Monthly Specials',0)" onclick="return CSButtonReturn()"><img src="images/Navigation-Gray_04.gif" width="111" height="21" name="Monthly Specials" border="0"></a></csobj></TD>
                                          <TD><csobj w="119" h="21" t="Button" ht="Images/Navigation-Red_05.gif"><a href="results.cfm?action=bestsellers" onmouseover="return CSIShow(/*CMP*/'Top Ten Bestsellers',1)" onmouseout="return CSIShow(/*CMP*/'Top Ten Bestsellers',0)" onclick="return CSButtonReturn()"><img src="images/Navigation-Gray_05.gif" width="119" height="21" name="Top Ten Bestsellers" border="0"></a></csobj></TD>
                                          <TD><csobj w="93" h="21" t="Button" ht="Images/Navigation-Red_06.gif"><a href="results.cfm?action=closeout" onmouseover="return CSIShow(/*CMP*/'Closeout Sale',1)" onmouseout="return CSIShow(/*CMP*/'Closeout Sale',0)" onclick="return CSButtonReturn()"><img src="images/Navigation-Gray_06.gif" width="93" height="21" name="Closeout Sale" border="0"></a></csobj></TD>
                                    </TR>
                              </TABLE>
                        </TD>
      </TR>
      <TR>
                        <td bgcolor="#cc0000" valign="top" align="center" width="10%"><img src="Images/spacer.gif" width="135" height="10" border="0"><br>
                              <table width=110 border=0 cellpadding=0 cellspacing=0>
                                    <tr>
                                          <td><csobj w="110" h="21" t="Button" ht="Images/sidebargray_01.gif"><a href="faq.cfm#howorder" onmouseover="return CSIShow(/*CMP*/'button7',1)" onmouseout="return CSIShow(/*CMP*/'button7',0)" onclick="return CSButtonReturn()"><img src="Images/sidebarred_01.gif" width="110" height="40" name="button7" border="0"></a></csobj></td>
                                    </tr>
                                    <tr>
                                          <td><csobj w="110" h="20" t="Button" ht="Images/sidebargray_02.gif"><a href="faq.cfm#international" onmouseover="return CSIShow(/*CMP*/'button8',1)" onmouseout="return CSIShow(/*CMP*/'button8',0)" onclick="return CSButtonReturn()"><img src="Images/sidebarred_02.gif" width="110" height="20" name="button8" border="0"></a></csobj></td>
                                    </tr>
                                    <tr>
                                          <td><csobj w="110" h="20" t="Button" ht="Images/sidebargray_03.gif"><a href="privacy.cfm" onmouseover="return CSIShow(/*CMP*/'button9',1)" onmouseout="return CSIShow(/*CMP*/'button9',0)" onclick="return CSButtonReturn()"><img src="Images/sidebarred_03.gif" width="110" height="20" name="button9" border="0"></a></csobj></td>
                                    </tr>
                              </table>
                              <br>
                              <csobj w="110" h="20" t="Button" ht="Images/Maillstgray.gif"><a href="maillist.cfm" onmouseover="return CSIShow(/*CMP*/'button2',1)" onmouseout="return CSIShow(/*CMP*/'button2',0)" onclick="return CSButtonReturn()"><img src="Images/Maillstred.gif" width="110" height="20" name="button2" border="0"></a></csobj><br>
                              <br>
                              
                              <p><img src="Images/m_logo.gif" width="113" height="29" border="1"></p>
                              <p><a href="http://www.thawte.com/html/RETAIL/sgc/faq.html"><img src="Images/topLeft.gif" width="113" height="39" border="1"></a></p>
                        </td>
                        <td valign="top" align="center" bgcolor="white"><img src="Images/spacer.gif" width="615" height="5" border="0">
                              <table border=0 cellpadding=7 cellspacing=0 width="95%">
                                    <tr>
                                          <td width="50%" valign="top">
                                                <p><font face="Verdana,Arial,Helvetica,Geneva,San-Serif" size="3"><b>Order Confirmation</b></font></p>
                                          </td>
                                    </tr>
                              </table>
                              <table border="0" cellpadding="0" cellspacing="2" width="95%" height="5">
                                    <tr>
                                          <td bgcolor="#cc0000"><img src="Images/spacer.gif" width="5" height="4" border="0"></td>
                                    </tr>
                              </table>
                              <img src="Images/spacer.gif" width="615" height="5" border="0">
                              <table border="0" cellpadding="0" cellspacing="0" width="95%">
                                    <tr>
                                          <td valign="top" align="center">
                                                <table border="0" cellpadding="3" cellspacing="2" width="95%">
                                                      <tr>
                                                            <td width="50%" valign="top"><img src="Images/spacer.gif" width="1" height="1" border="0"></td>
                                                            <td width="5" valign="top"><img src="Images/spacer.gif" width="1" height="1" border="0"></td>
                                                            <td width="50%" valign="top"><img src="Images/spacer.gif" width="1" height="1" border="0"></td>
                                                      </tr>
                                                      <tr>
                                                            <td width="50%" valign="top">
                                                                  <table border="1" cellpadding="3" cellspacing="2" width="100%" height="100%">
                                                                        <tr height="5%">
                                                                              <td bgcolor="#003366" valign="top" height="5%"><font size="2" face="Verdana,Arial,Helvetica,Geneva,San-Serif" color="white"><b>Billing
                                                                                    Information <br>
                                                                          (product
                                                                                    will be shipped to
                                                                                    this address)</b></font></td>
                                                                        </tr>
                                                                        <tr>
                                                                              <td bgcolor="#f5f5f5" valign="top"><font face="Verdana,Arial,Helvetica,sans-serif" size="2"><CFOUTPUT>#StructFind(Session.FormInfo, "bill_to_fname")# #StructFind(Session.FormInfo, "bill_to_lname")#<br>
                                                                              #StructFind(Session.FormInfo, "bill_to_company")#<br>
                                                                              #StructFind(Session.FormInfo, "bill_to_addr1")#<br>
                                                                              #StructFind(Session.FormInfo, "bill_to_addr2")#<br>
                                                                                          #StructFind(Session.FormInfo, "bill_to_city")#, #StructFind(Session.FormInfo, "bill_to_state")# #StructFind(Session.FormInfo, "bill_to_zip")#, #StructFind(Session.FormInfo, "bill_to_country")#<br>
                                                                              #StructFind(Session.FormInfo, "bill_to_email")#<br>
                                                                              #StructFind(Session.FormInfo, "bill_to_phone")#</CFOUTPUT></font>
                                                                              </td>
                                                                        </tr>
                                                                  </table>
                                                            </td>
                                                            <td width="5" valign="top">
                                                            </td>
                                                            <td width="50%" valign="top">
                                                                  
                                                            </td>
                                                      </tr>
                                                      <tr height="10">
                                                            <td width="50%" valign="top" height="10"><img src="Images/spacer.gif" width="1" height="1" border="0"></td>
                                                            <td width="5" valign="top" height="10"></td>
                                                            <td width="50%" valign="top" height="10"></td>
                                                      </tr>
                                                      <tr>
                                                            <td width="50%" valign="top">
                                                                  <table border="1" cellpadding="3" cellspacing="2" width="100%" height="100%">
                                                                        <tr height="5%">
                                                                              <td bgcolor="#003366" valign="top" height="5%"><b><font face="Verdana,Arial,Helvetica,sans-serif" size="2" color="white">Credit Card Information</font></b></td>
                                                                        </tr>
                                                                        <tr>
                                                                              <td bgcolor="#f5f5f5" valign="top"><font face="Verdana,Arial,Helvetica,sans-serif" size="2"><CFOUTPUT> Credit Card: #StructFind(Session.FormInfo, "cc_type")#<br>
                                                                              CVV: <font face="Verdana,Arial,Helvetica,sans-serif" size="2"><cfoutput>#StructFind(Session.FormInfo, "cc_cvv")#</cfoutput></font><br>
                                                                              Number: #StructFind(Session.FormInfo, "cc_number")#<br>
                                                                              Expiration Date: #StructFind(Session.FormInfo, "cc_exp_month")# #StructFind(Session.FormInfo, "cc_expire_yr")#</CFOUTPUT></font>
                                                                              </td>
                                                                        </tr>
                                                                  </table>
                                                            </td>
                                                            <td width="5" valign="top"></td>
                                                            <td width="50%" valign="top">
                                                                  <table border="1" cellpadding="3" cellspacing="2" width="100%" height="100%">
                                                                        <tr height="5%">
                                                                              <td bgcolor="#003366" valign="top" height="5%"><b><font color="white" face="Verdana,Arial,Helvetica,sans-serif" size="2">Customer Discount</font></b></td>
                                                                        </tr>
                                                                        <tr>
                                                                              <td bgcolor="#f5f5f5" valign="top"><CFIF Isdefined("IsValidCoupon")>
                                                                              <CFOUTPUT><font face="Verdana,Arial,Helvetica,sans-serif" size="2">Coupon Number: #ValidCoupon.Serial_Number#<br>
                                                                                    Discount Amount: #DollarFormat(ValidCoupon.discount)#</font></CFOUTPUT>
                                                                              <CFELSE><font face="Verdana,Arial,Helvetica,sans-serif" size="2">Coupon Number: None<br>
                                                                                    Discount Amount: $0.00</font>
                                                                              </CFIF>
                                                                              </td>
                                                                        </tr>
                                                                  </table>
                                                            </td>
                                                      </tr>
                                                      <tr height="10">
                                                            <td width="50%" valign="top" height="10"><img src="Images/spacer.gif" width="1" height="1" border="0"></td>
                                                            <td width="5" valign="top" height="10"></td>
                                                            <td width="50%" valign="top" height="10"></td>
                                                      </tr>
                                                      <tr>
                                                            <td colspan="3" valign="top">
                                                                  <table border="1" cellpadding="3" cellspacing="2" width="100%" height="100%">
                                                                        <tr height="5%">
                                                                              <td bgcolor="#003366" align="center" height="5%"><b><font face="Verdana,Arial,Helvetica,sans-serif" size="2" color="white">Title</font></b></td>
                                                                              <td bgcolor="#003366" align="center" height="5%"><b><font face="Verdana,Arial,Helvetica,Geneva,San-Serif" color="white" size="2">Price</font></b></td>
                                                                              <td bgcolor="#003366" align="center" height="5%"><b><font face="Verdana,Arial,Helvetica,sans-serif" size="2" color="white">Qty</font></b></td>
                                                                              <td bgcolor="#003366" align="center" height="5%"><b><font size="2" face="Verdana,Arial,Helvetica,sans-serif" color="white">Total</font></b></td>
                                                                        </tr>
                                                                        <CFLOOP INDEX="loopcount" From="1" To="#ArrayLen(session.cart)#">
                                                                        <CFSET total=session.cart[loopcount][3]*session.cart[loopcount][2]>
                                                                        <CFOUTPUT>
                                                                        <tr>
                                                                              <td width="95%"><font face="Verdana,Arial,Helvetica,sans-serif" size="2">#session.cart[loopcount][1]#</font></td>
                                                                              <td align="center"><font face="Verdana,Arial,Helvetica,Geneva,San-Serif" size="2">#DollarFormat(session.cart[loopcount][2])#</font></td>
                                                                              <td align="center"><font face="Verdana,Arial,Helvetica,Geneva,San-Serif" size="2">#session.cart[loopcount][3]#</font></td>
                                                                              <td align="left"><font size="2" face="Verdana,Arial,Helvetica,sans-serif">#DollarFormat(total)#</font></td>
                                                                        </tr>
                                                                        </CFOUTPUT>
                                                                        </CFLOOP>
                                                                        <tr>
                                                                              <td colspan="3" bgcolor="#f5f5f5" align="right"><font face="Verdana,Arial,Helvetica,sans-serif" size="2"><b>Subtotal</b></font></td>
                                                                              <td bgcolor="#f5f5f5" align="left"><font face="Verdana,Arial,Helvetica,sans-serif" size="2"><CFOUTPUT>#DollarFormat(session.subtotal)#</CFOUTPUT></font></td>
                                                                        </tr>
                                                                        <tr>
                                                                              <td colspan="3" bgcolor="#f5f5f5" align="right"><font face="Verdana,Arial,Helvetica,sans-serif" size="2"><b>Shipping</b></font></td>
                                                                              <td bgcolor="#f5f5f5" align="left"><font face="Verdana,Arial,Helvetica,sans-serif" size="2"><CFOUTPUT>#DollarFormat(Session.ShipTotal)#</CFOUTPUT></font></td>
                                                                        </tr>
                                                                        <tr>
                                                                              <td colspan="3" bgcolor="#f5f5f5" align="right"><font face="Verdana,Arial,Helvetica,sans-serif" size="2"><b>Tax</b></font></td>
                                                                              <td bgcolor="#f5f5f5" align="left"><font face="Verdana,Arial,Helvetica,sans-serif" size="2"><CFOUTPUT>#DollarFormat(Session.TaxTotal)#</CFOUTPUT></font></td>
                                                                        </tr>
                                                                        <tr>
                                                                              <td colspan="3" bgcolor="#f5f5f5" align="right"><font face="Verdana,Arial,Helvetica,sans-serif" size="2"><b>Total Due</b></font></td>
                                                                              <td bgcolor="#f5f5f5" align="left"><font face="Verdana,Arial,Helvetica,sans-serif" size="2"><CFOUTPUT>#DollarFormat(Session.TotalDue)#</CFOUTPUT></font></td>
                                                                        </tr>
                                                                  </table>
                                                            </td>
                                                      </tr>
                                                </table>
                                                <table border="0" cellpadding="10" cellspacing="2" width="90%"><!--DWLayoutTable-->
                                                      <tr>
                                                            <td width="122">
                                                            <a href="processing.cfm"><img src="images/process.gif" width="138" height="25" border="0"></a>
                                                                  
                                                            </td>
                                                            <td width="122">
                                                            <a href="new-checkout.cfm"><img src="images/change.gif" width="138" height="25" border="0"></a>
                                                            
                                                            </td>
                                                            <td width="512">
                                                            </td>
                                                      </tr>
                                                </table>
                                                <img src="Images/spacer.gif" width="615" height="10" border="0"></td>
                                    </tr>
                              </table>
                        </td>
                  </TR>
      <TR height="18">
                        <td rowspan="3" bgcolor="#cc0000" width="10%"><img src="Images/spacer.gif" width="1" height="1" border="0"></td>
                        <TD HEIGHT=18 bgcolor="#003366" align="center">
                              <TABLE WIDTH=192 BORDER=0 CELLPADDING=0 CELLSPACING=0>
                                    <TR>
                                          <TD><a href="info.cfm"><IMG SRC="Images/bluebar_01.gif" border="0"></a></TD>
                                          <TD><a href="info.cfm#retail"><IMG SRC="Images/bluebar_02.gif" border="0"></a></TD>
                                          <TD><a href="mailto:info@.com"><IMG SRC="Images/bluebar_03.gif" border="0"></a></TD>
                                    </TR>
                              </TABLE>
                        </TD>
      </TR>
      <TR>
                        <TD>
                  <IMG SRC="../../Test%20Table/even%20newer%20test%20table/images/_11.jpg" WIDTH=565 HEIGHT=1></TD>
                  </TR>
      <TR height="21">
                        <TD HEIGHT=21 bgcolor="#dcdcdc" align="center"><font face="Verdana,Arial,Helvetica,Geneva,San-Serif" color="black" size="1"><a href="index.cfm?action=home">Home</a></font><font face="Verdana,Arial,Helvetica,Geneva,San-Serif" size="1"> | </font><font face="Verdana,Arial,Helvetica,Geneva,San-Serif" color="#cc0000" size="1"><a href="cart.cfm">View Cart </a></font><font face="Verdana,Arial,Helvetica,Geneva,San-Serif" size="1">| </font><font face="Verdana,Arial,Helvetica,Geneva,San-Serif" color="#cc0000" size="1"><a href="results.cfm?action=new_arrivals">New Arrivals</a></font><font face="Verdana,Arial,Helvetica,Geneva,San-Serif" size="1"> | </font><font face="Verdana,Arial,Helvetica,Geneva,San-Serif" color="#cc0000" size="1"><a href="results.cfm?action=specials">Monthly Specials</a></font><font face="Verdana,Arial,Helvetica,Geneva,San-Serif" size="1"> | </font><font face="Verdana,Arial,Helvetica,Geneva,San-Serif" color="#cc0000" size="1"><a href="results.cfm?action=bestsellers">Top 10 Bestsellers</a></font><font face="Verdana,Arial,Helvetica,Geneva,San-Serif" size="1"> | </font><font face="Verdana,Arial,Helvetica,Geneva,San-Serif" color="#cc0000" size="1"><a href="results.cfm?action=closeout">Closeout Sale</a></font></TD>
                  </TR>
</TABLE>
</BODY>
</HTML>
0
 
LVL 17

Expert Comment

by:anandkp
ID: 12041866
If u have tried what tacobell suggested - i think it shld work fine for u.
u may also go with client side validations [javascript - to prevent the form submission again & again]
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

A web service (http://en.wikipedia.org/wiki/Web_service) is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
This video discusses moving either the default database or any database to a new volume.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now