Hidden Form Variables
| From: | MaulingMonkey | Date: | Tue, 06 May 2003 16:40:08 +0000 |
| Subject: | Hidden Form Variables | ||
| Groups: | php.lang | ||
| Request: | Send a blank email to php-lang+get-487@lists.php.net to get a copy of this message | ||
This isn't exactly a PHP question, but I don't know where to ask it, and
it's closely related...
I have a form which saves some PHP variables as hidden properties of a field
for maintaining a user login. However, it's contents arn't posted to sites
linked via <a href=...></a> tags. If someone could tell me how to do this
without using cookies that'd be great (I'm trying to provide an alternative
for those people who's sysadmin disabled cookies - usually in a public place
such as a library).
aka my main page looks something like:
<html><head><title> Page Title </title></head>
<body>
<form method="POST">
<input type="hidden" name="username" value="MrMonkey">
<input type="hidden" name="password" value="****">
</form>
... some webpage html ...
<a href="otherpage.php">Goto the other page</a><br>
<a href="http:\\www.microsoft.com\">Microsoft</a>
</body></html>
I'd want the hidden data posted to the first link but not the second
(although it won't really matter since I'll be changing from sending the
password to sending a unique randomized session id). I guess I could have a
script that forwarded to M$ site in this example, <a
href="forward.php?url='http:\\www.microsoft.com'>, but I also will be
having
users post HTML to my site, and I can't depend on them to remember that
every time...
feedback appreciated, thanks!
-Mike
(aka MaulingMonkey at http:\\www.leetoldman.com (down for
modifications) and
http:\\www.weirdstudios.com\ (being redone as we speak) )