From:             dan dot taylor at atlasmediagroup dot co dot uk
Operating system: XP Pro
PHP version:      Irrelevant
PHP Bug Type:     Variables related
Bug description:  When using input id instead of name $_POST doesnt work

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 bug report at http://bugs.php.net/?id=30168&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=30168&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30168&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30168&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=30168&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=30168&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=30168&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=30168&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=30168&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=30168&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=30168&r=notwrong
Not enough info:             http://bugs.php.net/fix.php?id=30168&r=notenoughinfo
Submitted twice:             http://bugs.php.net/fix.php?id=30168&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=30168&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=30168&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=30168&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=30168&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=30168&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=30168&r=float
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=30168&r=mysqlcfg

Reply via email to