php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30168 When using input id instead of name $_POST doesnt work
Submitted: 2004-09-20 13:27 UTC Modified: 2004-09-20 14:59 UTC
From: dan dot taylor at atlasmediagroup dot co dot uk Assigned:
Status: Not a bug Package: Variables related
PHP Version: Irrelevant OS: XP Pro
Private report: No CVE-ID: None
 [2004-09-20 13:27 UTC] 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:

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-09-20 14:59 UTC] dan dot taylor at atlasmediagroup dot co dot uk
i'm oh so wrong
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 11:01:30 2024 UTC