View Full Version : Can you pass hidden data between pages without using a form?
I am trying to pass hiden data between a series of pages and want to do it so that the data is njot in the url.
I would rather not use a form with hidden data and wondered, is it possible to do something like this (but which works)?
<a href=""><input type="hidden" name="name" value="">hyperlink</a>
05-29-2005, 07:09 PM
do you think it works with :
<a href="!!!"><input type="submit" id="go" value="go" />hyperlink</a>
er, doubt it: that would give me a button wouldn't it? I just want to have a straightforward hyperlink but which passes data otherwiase than through the url.
05-29-2005, 11:43 PM
yay l dont think so ... perhaps using sessions with PHP, this wouldn't "hide it" per se, but would definetly encode it and 'hide' the contents...
so your variables would be stored in the session id, and would end up looking like:
<a href="page2.html?sid=abecffaa52f529a2b83b6612a7964b02">go to page 2</a>
of course PHP would append the "?sid=xxxx" to the end of all your links, which would contain all of the information you'd like to carry on from page to page.
more info on sessions:
I'll check it out.
06-01-2005, 01:01 AM
Since most of your other questions (and scripts) involve Perl, you shoulld look at the cpan modules.
There are others, doing a search for session found these:
06-01-2005, 01:26 AM
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.