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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

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: Fri Dec 27 02:01:29 2024 UTC