|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-03-13 17:04 UTC] kbritton at appliedmfg dot com
[2002-03-13 17:05 UTC] jimw@php.net
[2002-03-13 17:07 UTC] kbritton at appliedmfg dot com
[2002-03-13 17:28 UTC] kbritton at appliedmfg dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 04:00:01 2025 UTC |
Variables set using hidden form fields are not submitted with the form when the <INPUT> tag appears AFTER an include statement. For instance <?php if (isset($var2)) { echo('Var2 = '.$var2); exit(); } echo("<form method='post' action='$PHP_SELF'>"); echo("<input type='hidden' name='var1' value='foo'>"); include ('myfile.php'); echo("<input type='hidden' name='var2' value='baz'>"); echo("<input type='submit'>"); echo("</form>"); ?> ...will not send $var2 on post. Same thing with GET. Var1 comes through ok, though. I've checked the script that is include-d. Var2 is not addressed. Is this just me?