|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1998-09-22 10:47 UTC] zeev
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 22 20:00:01 2025 UTC |
I'm using apache1.3b5 and php3.0 at sunos5.5.1 Look at the following script(say "test.phtml"). <form method=post action=show.phtml> New id=<input type=text size=20 name=newid> </form> <?php echo "<br>Your current is $REMOTE_USER<br>"; ?> and in show.phtml, <?php echo "oldid = $REMOTE_USER<br>"; echo "newid = $newid<br>"; ?> test.html and show.phtml is located in the same directory protected by user-authentification. Load test.phtml, and enter new id(say "smith"). Newid [ ] Your currnet id is SMITH (SMITH is auth-user name) then, show.phtml prints oldid = newid = smith $REMOTE_USER is lost at post method.