I have created a form on my opening page. My next page (page2.asp) varify's the user's information that the put in the form. I need to provide the user with a cancel button on (page2.asp) that will take them back to the form which will be clear.
Can someone help me with coding this???
<%@LANGUAGE="JAVASCRIPT" CODEPAGE="CP_ACP"%>
<html>
<head>
<title>page2.asp</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<%
function confirmReset() {
var resetForm = confirm(
"Are you sure you want to reset the form?"
;
if (resetForm == true)
return true;
return false;
}%>
</head>
<body>
<H2> Products Ordered:</H2>
<P>Hammers Ordered: <%= Request.Form("hammers"
%></P>
<P>Clamps Ordered: <%= Request.Form("clamps"
%></P>
<P>Torches Ordered: <%= Request.Form("torches"
%></P>
<P>Axes Ordered: <%= Request.Form("axes"
%></P>
<P>Chisels Ordered: <%= Request.Form("chisels"
%></P>
<H2>Billing Information:</H2>
<P>Name: <%= Request.Form("name"
%></P>
<P>Billing Address: <%= Request.Form("address"
%></P>
<P>Shipping Address: <%= Request.Form("address2"
%></P>
<P>City: <%= Request.Form("city"
%></P>
<P>State: <%= Request.Form("state"
%></P>
<P>Zip: <%= Request.Form("zip"
%></P>
<P>Phone Number: <%= Request.Form("phone"
%></P>
<P>Email Address: <%= Request.Form("email"
%></P>
<P>Credit Card Type: <%= Request.Form("creditcard"
%></P>
<P>Credit Card Number: <%= Request.Form("ccnum"
%></P>
<P>Expiration Date: <%= Request.Form("expdate"
%></P>
<FORM ACTION="file:///C|/MyWebSites/INFO250/Exercise10/Tutorial.10/thankorder.asp" METHOD="post" ENCTYPE="type/plain" NAME="secpage"
onSubmit="document.secpage.submit()"
onReset="return confirmReset();">
<INPUT TYPE="reset" NAME="cancel_button" Value="Cancel">
<INPUT TYPE="submit" NAME="confirm_button" Value="Confirm">
</form>
</body>
</html>
Can someone help me with coding this???
<%@LANGUAGE="JAVASCRIPT" CODEPAGE="CP_ACP"%>
<html>
<head>
<title>page2.asp</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<%
function confirmReset() {
var resetForm = confirm(
"Are you sure you want to reset the form?"

if (resetForm == true)
return true;
return false;
}%>
</head>
<body>
<H2> Products Ordered:</H2>
<P>Hammers Ordered: <%= Request.Form("hammers"

<P>Clamps Ordered: <%= Request.Form("clamps"

<P>Torches Ordered: <%= Request.Form("torches"

<P>Axes Ordered: <%= Request.Form("axes"

<P>Chisels Ordered: <%= Request.Form("chisels"

<H2>Billing Information:</H2>
<P>Name: <%= Request.Form("name"

<P>Billing Address: <%= Request.Form("address"

<P>Shipping Address: <%= Request.Form("address2"

<P>City: <%= Request.Form("city"

<P>State: <%= Request.Form("state"

<P>Zip: <%= Request.Form("zip"

<P>Phone Number: <%= Request.Form("phone"

<P>Email Address: <%= Request.Form("email"

<P>Credit Card Type: <%= Request.Form("creditcard"

<P>Credit Card Number: <%= Request.Form("ccnum"

<P>Expiration Date: <%= Request.Form("expdate"

<FORM ACTION="file:///C|/MyWebSites/INFO250/Exercise10/Tutorial.10/thankorder.asp" METHOD="post" ENCTYPE="type/plain" NAME="secpage"
onSubmit="document.secpage.submit()"
onReset="return confirmReset();">
<INPUT TYPE="reset" NAME="cancel_button" Value="Cancel">
<INPUT TYPE="submit" NAME="confirm_button" Value="Confirm">
</form>
</body>
</html>