Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Confirmation Page

Status
Not open for further replies.

cactus1000

Programmer
Aug 31, 2001
149
US
I know this is easy, but I'm new at this. I need to create a confirmation page that asks the user if the form data they entered is correct. If so, they click "submit" otherwise, "back".

I know this would involve assigning the form data to a variable and using the Response.Write method along with a hidden field to pass the variable to the next ASP page, but I can't seem to find any code examples.

Can anyone show me what this would look like?
 
never needed one but it sounds simple enough. try this out
comfirm.htm
<html>
<body>
<form name=&quot;frm&quot; method=&quot;post&quot; action=&quot;confirmfrm.asp&quot;>
<input tyep=&quot;text&quot; name=&quot;nm&quot;>
<input type=&quot;submit&quot; value=&quot;submit&quot;>
</body>
<html>

confirmfrm.asp
<html>
<body>
<%
dim nm
nm = request.form(&quot;nm&quot;)
%>
<form name=&quot;frm2&quot; method=&quot;post&quot; action=&quot;submit.asp&quot;>
Are you sure you want to submit the form with the current values?<br>
Name:<input type=&quot;text&quot; name=&quot;nm2&quot; value='<%=nm%>' style=&quot;border:none;&quot;><br>
<input type=&quot;submit&quot; value=&quot;Submit&quot;><br>
If no, click <a href=&quot;#&quot; onClick=&quot;javascript:history.go(-1)&quot;>here</a> to go back and try again
</form>
</body>
</html>

submit.asp being whatever

hows that for really simple and quick[lol] Was it something I said?
admin@onpntwebdesigns.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top