PHP 4.0 Bug #5670: Header Function - Hidden Variable

From: Date: Wed, 19 Jul 2000 04:24:12 +0000
Subject: PHP 4.0 Bug #5670: Header Function - Hidden Variable
Groups: php.dev 
Request: Send a blank email to php-dev+get-25027@lists.php.net to get a copy of this message
From: bportis@hotmail.com Operating system: Redhat Linux 6.1 PHP version: 4.0 Latest CVS (19/07/2000) PHP Bug Type: Scripting Engine problem Bug description: Header Function - Hidden Variable I am having trouble passing hidden variables when I use the header function. The hidden variable appears in the URL, even when I have declared it as hidden. For example: File1.php <HTML> <HEAD> <TITLE>Setting Prefs</TITLE> </HEAD> <? $test_variable="TestingHiddenVariable"; ?> <FORM METHOD="POST" ACTION="File2.php?"> <input type="hidden" name="test_variable" value="<?echo $test_variable ?>"> </FORM> </BODY> </HTML> File2.php <? $new_test_variable = "DidItWork"; $test_variable = $new_test_variable; Header("Location: File3.php?test_variable=$test_variable"); ?> File3.php <HTML> <HEAD> <TITLE>Setting Prefs</TITLE> </HEAD> <FORM METHOD="POST" ACTION="File4.php"> <input type="hidden" name="test_variable" value="<?echo $test_variable ?>"> </FORM> </BODY> </HTML> After the header function calls File3.php. The url has ...File3.php?test_variable=DidItWork If anyone have a clue how to pass hidden variables using the header function please let me know. Your help will be greatly appreciated. Thanks

« previous php.dev (#25027) next »