#32601 [Bgs]: Related to Bug #18648 Single entry form POST gives incorrect variable content.
ID: 32601 User updated by: sarah dot lee at seh dot ox dot ac dot uk Reported By: sarah dot lee at seh dot ox dot ac dot uk Status: Bogus Bug Type: Apache related Operating System: Windows XP PHP Version: 4.3.9 New Comment: Ok, thank you for explaining, and sorry to have taken up your time. Previous Comments: [2005-05-03 09:18:07] [EMAIL PROTECTED] This is simply how IE works, or doesn't work, depending on your perspective. Try it with a browser that actually works, like Firefox. It has nothing to do with bug #18648. I think the easiest way to prove this to you is to get you to simply change the test case to use a GET instead of a POST so you can see exactly what the browser is sending to PHP. On IE when you hit enter in the single text field, it just sends: ptitle= but when you click the submit button it sends: ptitle=&submit=Submit This sort of question really doesn't belong in our bug reporting system. Please use the appropriate mailing list next time. [2005-05-03 07:52:39] sarah dot lee at seh dot ox dot ac dot uk The related bug report to this seemed to indicate it was to do with PHP. Why is this any different now? I've tried the suggested solutions in Bug #18648, but unlike others there could not solve it. [2005-05-03 07:00:41] [EMAIL PROTECTED] This has nothing to do with PHP. PHP just shows you what your browser is sending. [2005-05-03 06:42:00] sarah dot lee at seh dot ox dot ac dot uk This was marked bogus, but was my last comment taken into account? [2005-04-06 19:08:29] sarah dot lee at seh dot ox dot ac dot uk Sorry to confuse, but I've just discovered someting new. When simply pressing enter: array(2) { ["ptitle"]=> string(0) "" ["submit"]=> string(6) "Submit" } When pressing enter and the cursor is in the box (as is the norm when you have just finished typing something): array(1) { ["ptitle"]=> string(0) "" } The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/32601 -- Edit this bug report at http://bugs.php.net/?id=32601&edit=1
#32601 [Bgs]: Related to Bug #18648 Single entry form POST gives incorrect variable content.
ID: 32601 Updated by: [EMAIL PROTECTED] Reported By: sarah dot lee at seh dot ox dot ac dot uk Status: Bogus Bug Type: Apache related Operating System: Windows XP PHP Version: 4.3.9 New Comment: This is simply how IE works, or doesn't work, depending on your perspective. Try it with a browser that actually works, like Firefox. It has nothing to do with bug #18648. I think the easiest way to prove this to you is to get you to simply change the test case to use a GET instead of a POST so you can see exactly what the browser is sending to PHP. On IE when you hit enter in the single text field, it just sends: ptitle= but when you click the submit button it sends: ptitle=&submit=Submit This sort of question really doesn't belong in our bug reporting system. Please use the appropriate mailing list next time. Previous Comments: [2005-05-03 07:52:39] sarah dot lee at seh dot ox dot ac dot uk The related bug report to this seemed to indicate it was to do with PHP. Why is this any different now? I've tried the suggested solutions in Bug #18648, but unlike others there could not solve it. [2005-05-03 07:00:41] [EMAIL PROTECTED] This has nothing to do with PHP. PHP just shows you what your browser is sending. [2005-05-03 06:42:00] sarah dot lee at seh dot ox dot ac dot uk This was marked bogus, but was my last comment taken into account? [2005-04-06 19:08:29] sarah dot lee at seh dot ox dot ac dot uk Sorry to confuse, but I've just discovered someting new. When simply pressing enter: array(2) { ["ptitle"]=> string(0) "" ["submit"]=> string(6) "Submit" } When pressing enter and the cursor is in the box (as is the norm when you have just finished typing something): array(1) { ["ptitle"]=> string(0) "" } [2005-04-06 18:19:16] [EMAIL PROTECTED] There we go. You're getting just correct input. No bug here. (ALWAYS use the superglobals $_GET, $_POST, etc) The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/32601 -- Edit this bug report at http://bugs.php.net/?id=32601&edit=1
#32601 [Bgs]: Related to Bug #18648 Single entry form POST gives incorrect variable content.
ID: 32601 User updated by: sarah dot lee at seh dot ox dot ac dot uk Reported By: sarah dot lee at seh dot ox dot ac dot uk Status: Bogus Bug Type: Apache related Operating System: Windows XP PHP Version: 4.3.9 New Comment: The related bug report to this seemed to indicate it was to do with PHP. Why is this any different now? I've tried the suggested solutions in Bug #18648, but unlike others there could not solve it. Previous Comments: [2005-05-03 07:00:41] [EMAIL PROTECTED] This has nothing to do with PHP. PHP just shows you what your browser is sending. [2005-05-03 06:42:00] sarah dot lee at seh dot ox dot ac dot uk This was marked bogus, but was my last comment taken into account? [2005-04-06 19:08:29] sarah dot lee at seh dot ox dot ac dot uk Sorry to confuse, but I've just discovered someting new. When simply pressing enter: array(2) { ["ptitle"]=> string(0) "" ["submit"]=> string(6) "Submit" } When pressing enter and the cursor is in the box (as is the norm when you have just finished typing something): array(1) { ["ptitle"]=> string(0) "" } [2005-04-06 18:19:16] [EMAIL PROTECTED] There we go. You're getting just correct input. No bug here. (ALWAYS use the superglobals $_GET, $_POST, etc) [2005-04-06 14:26:54] sarah dot lee at seh dot ox dot ac dot uk Sorry, my mistake - I misread your question. Output is: array(2) { ["ptitle"]=> string(0) "" ["submit"]=> string(6) "Submit" } The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/32601 -- Edit this bug report at http://bugs.php.net/?id=32601&edit=1
#32601 [Bgs]: Related to Bug #18648 Single entry form POST gives incorrect variable content.
ID: 32601 User updated by: sarah dot lee at seh dot ox dot ac dot uk Reported By: sarah dot lee at seh dot ox dot ac dot uk Status: Bogus Bug Type: Apache related Operating System: Windows XP PHP Version: 4.3.9 New Comment: Sorry to confuse, but I've just discovered someting new. When simply pressing enter: array(2) { ["ptitle"]=> string(0) "" ["submit"]=> string(6) "Submit" } When pressing enter and the cursor is in the box (as is the norm when you have just finished typing something): array(1) { ["ptitle"]=> string(0) "" } Previous Comments: [2005-04-06 18:19:16] [EMAIL PROTECTED] There we go. You're getting just correct input. No bug here. (ALWAYS use the superglobals $_GET, $_POST, etc) [2005-04-06 14:26:54] sarah dot lee at seh dot ox dot ac dot uk Sorry, my mistake - I misread your question. Output is: array(2) { ["ptitle"]=> string(0) "" ["submit"]=> string(6) "Submit" } [2005-04-06 14:23:08] sarah dot lee at seh dot ox dot ac dot uk The result is: array(1) { ["ptitle"]=> string(4) "text" } I found a work-around last night, using "if ($_POST) { .. }" rather than "if ($submit) { .. }", but it still doesn't explain why $submit is not recognised. [2005-04-06 13:51:12] [EMAIL PROTECTED] What does this output when you press simply enter: test.php: [2005-04-06 01:58:06] sarah dot lee at seh dot ox dot ac dot uk Description: This is related to Bug #18648 Single entry form POST gives incorrect variable content. My problems seem to be similar to that of other users on that thread, a form with a single text box doesn't really submit if the enter button is pressed. I'm using Apache 1.3 on Windows. In my httpd.conf, I don't have any InputFilters/OutputFilters, just AddType application/x-httpd-php .php I've tried the other fixes suggested: doesn't fix it, and nor does . I seem to be the only one mentioning it with Apache 1.3. Is there anything that can be done to solve it? Reproduce code: --- In an include: In the PHP script: if ($submit) { ... } Expected result: I expect the data to be carried to the PHP script, as it would if the submit button were actually clicked. Actual result: -- The page just gets refreshed with the data before any text was entered into the text box, and enter pressed. -- Edit this bug report at http://bugs.php.net/?id=32601&edit=1