Print Page | Close Window

simple question on confirmation

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=2425
Printed Date: 28 March 2026 at 9:10am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: simple question on confirmation
Posted By: 288enzo
Subject: simple question on confirmation
Date Posted: 04 May 2003 at 8:07pm
I am the newest of newbies...

I have created a form.
On submit I would like a fresh page to open so that the user can view their entries priot to a final submit.
The second submit would then enter the data into my database . I know how to put the form data into my database . I just need help with that second page prior to the data actually being inserted into my database.

Thanks and don't make fun of the newbies.



Replies:
Posted By: Mart
Date Posted: 05 May 2003 at 2:22am

Ok post it to your other page and then you can just use

<input type="hidden" value="<%=request.form("whatever")%>" name="whatever">

And then just post it to your database page.



Posted By: 288enzo
Date Posted: 05 May 2003 at 4:24am

"Ok post it to your other page" - that is one of my problems.  I only know how to take form data and post it directly to my database.  I don't know how to post it to another web page prior to it being submitted to the database.

What is my first step to posting data from a form to another page?

Thanks.



Posted By: Mart
Date Posted: 05 May 2003 at 7:54am

well I asume you know html so just

<form method="post" action="page.asp">

<input type="text" name="field">

</form>

something similar to that then on page.asp

<form method="post" action="databaseadd.asp">

<input type="hidden" name="field" value="<%=request.form("field")%>">

Are you sure this data is OK?

<%=request.form("field")%>

<input type="submit" value="Yes">

</form>

That will post the confirmation (in hidden fields) to your database page where you can get it by request.form("field").

Martin.



Posted By: 288enzo
Date Posted: 05 May 2003 at 2:00pm

Thanks, that worked perfectly.




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net