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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

user confirmation page

Status
Not open for further replies.

richrich05

Programmer
Aug 15, 2005
24
US
Can anyone point me in the right direction?
I want to display to the user the data their getting ready to submit to confirm if there sure or not prior to submitting. Anyone know a easy way to do it?
 
Request all the form variables. Write it to the browser. Write a text asking the users to look into what they have entered. If not, then provide a link to go back to the previous page where they can edit their entered content. If it is OK, then provide the submit button to submit.

Something like:
<%
Response.Write "Name: " & Request.Form("Name") & "<br>"
Response.Write "Address: " & Request.Form("Address") & "<br>"
Response.Write "Phone: " & Request.Form("Phone") & "<br>"
Response.Write "City: " & Request.Form("City") & "<br>"
%>

If the content are OK, press the submit button.
<input type="submit" Value="Submit" onSubmit="Validate()">

If you would like to edit, please go back to edit.
<a href="javascript:history.go(-1)">Go Back One Page </a>

Hope that helps you.
Thanks.
 
Since this is the ASP forum we tend to focus on server-side script.

It seems like richrich05 may want to stop the form from submitting to the server until something happens in the browser. If so they will need to use client-side script.

To do it on the client side, you'd need to write a JavaScript function to be called by the onSubmit event of your HTML form.

See the JavaScript forum for more details on client-side scripting: forum216
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top