Print Page | Close Window

Passing values from page to page

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=25947
Printed Date: 29 March 2026 at 4:41am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Passing values from page to page
Posted By: Nerz
Subject: Passing values from page to page
Date 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
 



Replies:
Posted By: WebWiz-Bruce
Date 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.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Dan H
Date 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.


Posted By: shakir
Date Posted: 10 September 2008 at 10:35am
Use querystring


Posted By: dpyers
Date 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.



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