Bug #16049 Updated: Hidden Form fields do not POST/GET after include()
ID: 16049 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Bogus Bug Type: Output Control Operating System: Linux PHP Version: 4.1.2 New Comment: Bah! You were right. Turns out the include file had a tag in it. MAN I feel stupid. I just wish I hadn't spent all day trying to fix the frelling thing. Close me out but good. Previous Comments: [2002-03-13 17:07:03] [EMAIL PROTECTED] The page outputs fine. The include file parses EXACTLY as it is supposed toand code BELOW the form element also parses ok (subsequent includes and other html elements). It's just the form element that's affected. Still searching [2002-03-13 17:05:16] [EMAIL PROTECTED] double-check the html that is output by the include file. this almost certainly has nothing to do with php. [2002-03-13 17:04:03] [EMAIL PROTECTED] Forgot to add something. The second variable (var2) won't even show up as a form element. If you add a javascript to the bottom of the page that shows the form elements (document.forms[0].var2.value), it doesn't display. [2002-03-13 17:01:18] [EMAIL PROTECTED] Variables set using hidden form fields are not submitted with the form when the tag appears AFTER an include statement. For instance "); echo(""); include ('myfile.php'); echo(""); echo(""); echo(""); ?> ...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? -- Edit this bug report at http://bugs.php.net/?id=16049&edit=1
Bug #16049 Updated: Hidden Form fields do not POST/GET after include()
ID: 16049 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Bogus Bug Type: Output Control Operating System: Linux PHP Version: 4.1.2 New Comment: The page outputs fine. The include file parses EXACTLY as it is supposed toand code BELOW the form element also parses ok (subsequent includes and other html elements). It's just the form element that's affected. Still searching Previous Comments: [2002-03-13 17:05:16] [EMAIL PROTECTED] double-check the html that is output by the include file. this almost certainly has nothing to do with php. [2002-03-13 17:04:03] [EMAIL PROTECTED] Forgot to add something. The second variable (var2) won't even show up as a form element. If you add a javascript to the bottom of the page that shows the form elements (document.forms[0].var2.value), it doesn't display. [2002-03-13 17:01:18] [EMAIL PROTECTED] Variables set using hidden form fields are not submitted with the form when the tag appears AFTER an include statement. For instance "); echo(""); include ('myfile.php'); echo(""); echo(""); echo(""); ?> ...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? -- Edit this bug report at http://bugs.php.net/?id=16049&edit=1
Bug #16049 Updated: Hidden Form fields do not POST/GET after include()
ID: 16049 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Output Control Operating System: Linux PHP Version: 4.1.2 New Comment: Forgot to add something. The second variable (var2) won't even show up as a form element. If you add a javascript to the bottom of the page that shows the form elements (document.forms[0].var2.value), it doesn't display. Previous Comments: [2002-03-13 17:01:18] [EMAIL PROTECTED] Variables set using hidden form fields are not submitted with the form when the tag appears AFTER an include statement. For instance "); echo(""); include ('myfile.php'); echo(""); echo(""); echo(""); ?> ...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? -- Edit this bug report at http://bugs.php.net/?id=16049&edit=1
Bug #16049: Hidden Form fields do not POST/GET after include()
From: [EMAIL PROTECTED] Operating system: Linux PHP version: 4.1.2 PHP Bug Type: Output Control Bug description: Hidden Form fields do not POST/GET after include() Variables set using hidden form fields are not submitted with the form when the tag appears AFTER an include statement. For instance "); echo(""); include ('myfile.php'); echo(""); echo(""); echo(""); ?> ...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? -- Edit bug report at http://bugs.php.net/?id=16049&edit=1 -- Fixed in CVS:http://bugs.php.net/fix.php?id=16049&r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=16049&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=16049&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=16049&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=16049&r=support Expected behavior: http://bugs.php.net/fix.php?id=16049&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=16049&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=16049&r=submittedtwice