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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: dan dot taylor at atlasmediagroup dot co dot uk
New email:
PHP Version: OS:

 

 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Tue Apr 30 22:01:31 2024 UTC