Link to home
Start Free TrialLog in
Avatar of Helicopter
Helicopter

asked on

Opening a page with a passed variable

I have a page with a variable (form.id). If the user clicks a certain button I need to open another page and still have access to that variable value so that I can later re-open the first page in the same state (the variable is used in an Access query). What is the method of passing a value between pages?
ASKER CERTIFIED SOLUTION
Avatar of Christian_Wenz
Christian_Wenz

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Christian_Wenz
Christian_Wenz

of course, you could alternatively use a cookie instead
Avatar of ozo
Or, as Experts-Exchange does it, with <input type=hidden>
aargh, how obvious. I completely overlooked that! :-)
aargh, how obvious. I completely overlooked that! :-)
Avatar of Helicopter

ASKER

Thanks for the input. I had a feeling I'd need hidden fields. If I can just clarify a bit.

booking.htm is created by a cgi routine which runs SQL. This page shows a list of people. It also has a variable ##course.id## . If the user doesn't appear on this list, they go to register.htm and add their details to the server side database. What I would like to happen is, after the registration, reload booking.htm, updated so their name appears in the list. For this I need ##course.id## to be available from register.htm so that I can run the same cgi routine.

I'm not sure how to populate a hidden field with a passed parameter....
I'll close this one I think, thanks for the pointers.