#30168 [Opn->Bgs]: When using input id instead of name $_POST doesnt work
| From: | dan dot taylor at atlasmediagroup dot co dot uk | Date: | Mon, 20 Sep 2004 12:59:19 +0000 |
| Subject: | #30168 [Opn->Bgs]: When using input id instead of name $_POST doesnt work | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-66449@lists.php.net to get a copy of this message | ||
ID: 30168
User updated by: dan dot taylor at atlasmediagroup dot co dot uk
Reported By: dan dot taylor at atlasmediagroup dot co dot uk
-Status: Open
+Status: Bogus
Bug Type: Variables related
Operating System: XP Pro
PHP Version: Irrelevant
New Comment:
i'm oh so wrong
Previous Comments:
------------------------------------------------------------------------
[2004-09-20 13:27:07] dan dot taylor at atlasmediagroup dot co dot uk
Description:
------------
When using input id instead of name as per xhtml spec, $_POST doesn't
retrieve the variable.
Reproduce code:
---------------
<?php
echo "POST:".$_POST['feedback'];
echo "<form name=\"form1\" method=\"post\"
action=\"".$_SERVER['PHP_SELF']."\">\n";
echo "<p><textarea id=\"feedback\" cols=\"50\"
rows=\"5\"></textarea></p>\n";
echo "<p><input type=\"submit\" name=\"Submit\"
value=\"Submit\"
/></p>\n";
echo "</form>\n";
?>
Expected result:
----------------
POST:feedback text
Actual result:
--------------
POST:
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30168&edit=1