Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Passing values from page to page
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Passing values from page to page

 Post Reply Post Reply
Author
Nerz View Drop Down
Newbie
Newbie


Joined: 23 June 2008
Status: Offline
Points: 28
Post Options Post Options   Thanks (0) Thanks(0)   Quote Nerz Quote  Post ReplyReply Direct Link To This Post Topic: Passing values from page to page
    Posted: 09 July 2008 at 6:21pm
I'm trying to pass some values much like the tutorial.
my first page is login_form.html

<body bgcolor="white" text="black">
<!-- Begin form code -->
 <form name="form" method="post" action="checkExist.asp">
     ID: <input type="text" name="ID" maxlength="20" size="20">
     <input type="submit" name="Submit" value="Submit"><br>
     &nbsp;
 </form>
<!-- End form code -->
 
 
i know that on checkExist.asp, to get the information sent i need to do...
Request.Form("ID")
 
how can i send this same information to another asp page once i do
Response.Redirect "checkAgreement.asp
 
and how can i tell checkAgreement.asp to check the DB slots that i either found or added to from checkExist.asp
 
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 09 July 2008 at 7:11pm
The only way you could do this is by either using session variables to pass the data or by using Querystring data in the URL.
Back to Top
Dan H View Drop Down
Newbie
Newbie


Joined: 17 September 2006
Location: United States
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dan H Quote  Post ReplyReply Direct Link To This Post Posted: 17 July 2008 at 1:19am
You could park your info in cookies, then they're available whenever any page needs them.
Just like a session variable, but I like them because they're so easy to use.
Back to Top
shakir View Drop Down
Groupie
Groupie


Joined: 08 November 2007
Location: Saudi Arabia
Status: Offline
Points: 41
Post Options Post Options   Thanks (0) Thanks(0)   Quote shakir Quote  Post ReplyReply Direct Link To This Post Posted: 10 September 2008 at 10:35am
Use querystring
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 11 September 2008 at 3:17pm
If the info needs to be somewhat secure, use session variables. At least they go away by themselves. Cookies can hang around unless you explicitly expire them or set them to nulls. Query strings are part of the browsers history file and accessible by anyone with access to the browser.

Lead me not into temptation... I know the short cut, follow me.
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.