From: merylf at iinet dot net dot au
Operating system: Windows
PHP version: 5.2.5
PHP Bug Type: Arrays related
Bug description: $_POST array empty
Description:
------------
When posting data from a form, the $_POST array is empty.
Reproduce code:
---------------
Handler:
<?php
print_r($_POST);
if (strlen($_POST['yourname']) > 0) {
echo '<p>There is a name</p>';
} else {
echo '<p>You must enter your name.</p>';
}
?>
Form bits:
?>
<form id="cisform" action="handle_cis_form.php" method="post">
<fieldset><legend>CIS Form</legend>
<p><label for="originator">Your name:</label>
<input type="text" id="yourname" /></p>
Expected result:
----------------
$_POST['yourname'] should have a value when the form is submitted, but it
is empty.
--
Edit bug report at http://bugs.php.net/?id=44466&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=44466&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=44466&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=44466&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=44466&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=44466&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=44466&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=44466&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=44466&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=44466&r=support
Expected behavior: http://bugs.php.net/fix.php?id=44466&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=44466&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=44466&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=44466&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44466&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=44466&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=44466&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=44466&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=44466&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=44466&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=44466&r=mysqlcfg