ID: 32601 Updated by: [EMAIL PROTECTED] Reported By: sarah dot lee at seh dot ox dot ac dot uk -Status: Open +Status: Bogus Bug Type: Apache related Operating System: Windows XP PHP Version: 4.3.9 New Comment:
This has nothing to do with PHP. PHP just shows you what your browser is sending. Previous Comments: ------------------------------------------------------------------------ [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" } ------------------------------------------------------------------------ [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. ------------------------------------------------------------------------ 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