Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > ASP Forms
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 27th, 2003, 09:22 PM
Authorized User
 
Join Date: Jul 2003
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to pass form variables to another Form?

I need to have a form update another form anybody know how?

Dan
 
Old July 28th, 2003, 03:28 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

Is the other form on the same page or a different page?
 
Old July 29th, 2003, 11:03 AM
Authorized User
 
Join Date: Jul 2003
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am also wanting to know how this can be done. I have to design a form that has multiple pages. I was wondering how the values from the first page is passed to the second page and so on. Appreciate sharing some ideas.

 
Old July 29th, 2003, 01:24 PM
Registered User
 
Join Date: Jul 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Seems like some extra information is needed. But here is some general info.

If you are reloading pages (or frames), then using either hidden input values or cookies is the preferred way to do this, IMO. I find hidden input values good for linking between two forms, but linking b/w multiple forms seems a job that cookies were designed for.

If you're trying to get form data to update live, then i suggest using javascript cookies in order to pass data back and forth.

 
Old July 29th, 2003, 08:15 PM
Authorized User
 
Join Date: Jul 2003
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well here is my situation:

I have a loginform.asp that has username and password.
Once the user is loged in I need to keep the username in memory for use it the other form called weeklyupdate.asp.

Then I store there weekly stats in MS access db with the username as primary key!

Any ideas

 
Old July 30th, 2003, 10:42 AM
Registered User
 
Join Date: Jul 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I vote for using a cookie. A simple explanation of how to communicate with cookies is found here:

http://www.scit.wlv.ac.uk/~jphb/sst/asp/asp4.html

This way you could store the user name as one attribute (for use later in your db) and also, set an attribute as to whether or not a user is currently "logged in" (so they don't have to keep entering their information).






Similar Threads
Thread Thread Starter Forum Replies Last Post
HOW WE CAN PASS FORM NAME pankajag_in VB How-To 1 October 11th, 2006 02:10 AM
OTHER: Pass query result to a Form sugar Pro VB Databases 3 April 4th, 2006 11:14 AM
Can't pass variables to form for validation! gnilly PHP How-To 4 April 24th, 2005 06:33 AM
Form Variables interrupt Javascript How-To 3 June 29th, 2004 07:00 AM
How to pass a variable form one form to the next Dinesh22 VB.NET 2002/2003 Basics 1 January 8th, 2004 08:55 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.