I am pretty sure I am doing something wrong; just can't figure it out.
I have 3 pages.
Page one inputs data into a form and submits the form.
As soon as the form is submitted, it goes to page2 where data entered is previewed.
If everything is fine, data is then submitted to the db.
if not, then you are taken back to page1 for editing and resubmission.
Having page 3 is not working.
So I removed page3 and made it just 2 pages.
It is still not working.
When I click the take me back button, it works but when I click the submit button, it does not submit to the database.
Can someone please take a look at page2 and advise me of what is wrong?
Thanks in advance.
<html>
<head>
<title>View Before Submitting</title>
</head>
<body>
<%@ language=vbscript%>
<%Response.buffer=true%>
<%
dim txtSpecName,txtOfferName,txtmakeModel,txtAlternatemakemodel,txtcontactName,txtContactEmail,txtItemDesc
txtSpecname = request.form("txtSpecname"
txtOfferName = request.form("txtOffername"
txtMakeModel = request.form("txtMakeModel"
txtAlternateMakeModel = request.form("txtAlternateModel"
txtContactName = request.form("txtContactName"
txtContactEmail = request.form("txtContactEmail"
txtItemDesc = request.form("txtItemDesc"
catG = request.form("catG"
%>
<table width=400 border=0>
<tr>
<td width=400>
<font face="arial" size=2>
<br>Here is the information you're submitting. If you would like to
make changes, please use the appropriate button below, or use the other
button to submit this entry as it is.
<br>
<br><b>Spec Name:</b> <%= txtSpecName %>
<br><b>Offer Name: </b> <%= txtOfferName %>
<br><b>Make & Model: </b> <%= txtMakeModel %>
<br><b>Alternate Make & Model: </b> <%= txtAlternateMakeModel %>
<br><b>Contact Name: </b> <%= txtContactName %>
<br><b>Contact Email: </b> <%= txtContactEmail %>
<br><b>Category: </b> <%= catG %>
<br><b>Specification: </b> <%= txtItemDesc %>
<form action="pageBeforeLast.asp" method="post">
<input type="hidden" name="txtSpecName" value="<%= SpecName %>">
<input type="hidden" name="txtOfferName" value="<%= OfferName %>">
<input type="hidden" name="txtMakeModel" value="<%= MakeModel%>">
<input type="hidden" name="txtAlternateModel" value="<%= AlternateMakeModel %>">
<input type="hidden" name="txtContactName" value="<%= ContactName %>">
<input type="hidden" name="txtContactEmail" value="<%= ContactEmail %>">
<input type="hidden" name="catG" value="<%= CategoryID %>">
<input type="hidden" name="txtItemDesc" value="<%= ItemDesc %>">
<input type="submit" value="Yes, Submit it!">
<input type="button" value="Let's Try Again" onClick="history.go(-1)">
</form></font>
</td>
</tr>
</table>
</body>
</html>
I have 3 pages.
Page one inputs data into a form and submits the form.
As soon as the form is submitted, it goes to page2 where data entered is previewed.
If everything is fine, data is then submitted to the db.
if not, then you are taken back to page1 for editing and resubmission.
Having page 3 is not working.
So I removed page3 and made it just 2 pages.
It is still not working.
When I click the take me back button, it works but when I click the submit button, it does not submit to the database.
Can someone please take a look at page2 and advise me of what is wrong?
Thanks in advance.
<html>
<head>
<title>View Before Submitting</title>
</head>
<body>
<%@ language=vbscript%>
<%Response.buffer=true%>
<%
dim txtSpecName,txtOfferName,txtmakeModel,txtAlternatemakemodel,txtcontactName,txtContactEmail,txtItemDesc
txtSpecname = request.form("txtSpecname"
txtOfferName = request.form("txtOffername"
txtMakeModel = request.form("txtMakeModel"
txtAlternateMakeModel = request.form("txtAlternateModel"
txtContactName = request.form("txtContactName"
txtContactEmail = request.form("txtContactEmail"
txtItemDesc = request.form("txtItemDesc"
catG = request.form("catG"
%>
<table width=400 border=0>
<tr>
<td width=400>
<font face="arial" size=2>
<br>Here is the information you're submitting. If you would like to
make changes, please use the appropriate button below, or use the other
button to submit this entry as it is.
<br>
<br><b>Spec Name:</b> <%= txtSpecName %>
<br><b>Offer Name: </b> <%= txtOfferName %>
<br><b>Make & Model: </b> <%= txtMakeModel %>
<br><b>Alternate Make & Model: </b> <%= txtAlternateMakeModel %>
<br><b>Contact Name: </b> <%= txtContactName %>
<br><b>Contact Email: </b> <%= txtContactEmail %>
<br><b>Category: </b> <%= catG %>
<br><b>Specification: </b> <%= txtItemDesc %>
<form action="pageBeforeLast.asp" method="post">
<input type="hidden" name="txtSpecName" value="<%= SpecName %>">
<input type="hidden" name="txtOfferName" value="<%= OfferName %>">
<input type="hidden" name="txtMakeModel" value="<%= MakeModel%>">
<input type="hidden" name="txtAlternateModel" value="<%= AlternateMakeModel %>">
<input type="hidden" name="txtContactName" value="<%= ContactName %>">
<input type="hidden" name="txtContactEmail" value="<%= ContactEmail %>">
<input type="hidden" name="catG" value="<%= CategoryID %>">
<input type="hidden" name="txtItemDesc" value="<%= ItemDesc %>">
<input type="submit" value="Yes, Submit it!">
<input type="button" value="Let's Try Again" onClick="history.go(-1)">
</form></font>
</td>
</tr>
</table>
</body>
</html>