Validating the User's
Details (cont'd)
Page 15 of 22 -
Chapter 14
If
the current year is the same as the year the user selected and the month is
before the current month then we know the card has expired and we inform the
user.
<!--#include file="ServerSideGlobalDef.inc"-->
<HTML>
<HEAD>
<TITLE>Confirm Details</TITLE>
</HEAD>
<BODY>
<FORM ACTION="ProcessOrder.asp"
method="POST">
<!-- Name/Address Details -->
<INPUT TYPE="HIDDEN" NAME="txtTitle"
VALUE="<%=Request.Form("txtTitle")%>">
<INPUT TYPE="HIDDEN" NAME="txtFirstName"
VALUE="<%=Request.Form("txtFirstName")%>">
<INPUT TYPE="HIDDEN" NAME="txtLastName"
VALUE="<%=Request.Form("txtLastName")%>">
<INPUT TYPE="HIDDEN" NAME="txtEmail"
VALUE="<%=Request.Form("txtEmail")%>">
<INPUT TYPE="HIDDEN" NAME="txtStreet"
VALUE="<%=Request.Form("txtStreet")%>">
<INPUT TYPE="HIDDEN" NAME="txtCity"
VALUE="<%=Request.Form("txtCity")%>">
<INPUT TYPE="HIDDEN" NAME="txtLocality"
VALUE="<%=Request.Form("txtLocality")%>">
<INPUT TYPE="HIDDEN" NAME="txtPostCode"
VALUE="<%=Request.Form("txtPostCode")%>">
<INPUT TYPE="HIDDEN" NAME="txtCountry"
VALUE="<%=Request.Form("txtCountry")%>">
<!-- Credit Card Details -->
<INPUT TYPE="HIDDEN" NAME="txtCCHolderName"
VALUE="<%=Request.Form("txtCardHolderName")
%>">
<INPUT TYPE="HIDDEN" NAME="txtCCNo"
VALUE="<%=Request.Form("txtCardNo")
%>">
<INPUT TYPE="HIDDEN" NAME="txtCCType"
VALUE="<%=Request.Form("radCardType")
%>">
<INPUT TYPE="HIDDEN" NAME="txtCCExpire"
VALUE="<%=Request.Form("cboExpMonth") +
"/" +
Request.Form("cboExpYear") %>">
|
Our next task is to display
a summary of the information the user entered starting with the actual items
in the order. We use the Basket.inc
file we created earlier (and used for the shopping basket) to actually display
the summary, this time we want it to be read only so bReadOnly
is set to true.
The Basket.inc
file has hidden input elements with the ItemId's
and quantities of the order and these will be sent when the form is submitted.