Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - simple question on confirmation
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

simple question on confirmation

 Post Reply Post Reply
Author
288enzo View Drop Down
Groupie
Groupie
Avatar

Joined: 28 April 2003
Location: United States
Status: Offline
Points: 61
Post Options Post Options   Thanks (0) Thanks(0)   Quote 288enzo Quote  Post ReplyReply Direct Link To This Post Topic: simple question on confirmation
    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.
Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
288enzo View Drop Down
Groupie
Groupie
Avatar

Joined: 28 April 2003
Location: United States
Status: Offline
Points: 61
Post Options Post Options   Thanks (0) Thanks(0)   Quote 288enzo Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
288enzo View Drop Down
Groupie
Groupie
Avatar

Joined: 28 April 2003
Location: United States
Status: Offline
Points: 61
Post Options Post Options   Thanks (0) Thanks(0)   Quote 288enzo Quote  Post ReplyReply Direct Link To This Post Posted: 05 May 2003 at 2:00pm

Thanks, that worked perfectly.

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.