#44466 [Opn->Fbk]: $_POST array empty
| From: | colder@php.net | Date: | Tue, 18 Mar 2008 10:05:57 +0000 |
| Subject: | #44466 [Opn->Fbk]: $_POST array empty | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-123414@lists.php.net to get a copy of this message | ||
ID: 44466
Updated by: colder@php.net
Reported By: merylf at iinet dot net dot au
-Status: Open
+Status: Feedback
Bug Type: Arrays related
Operating System: Windows
PHP Version: 5.2.5
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.3-latest.tar.gz
For Windows (zip):
http://snaps.php.net/win32/php5.3-win32-latest.zip
For Windows (installer):
http://snaps.php.net/win32/php5.3-win32-installer-latest.msi
Previous Comments:
------------------------------------------------------------------------
[2008-03-18 07:58:28] merylf at iinet dot net dot au
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 this bug report at http://bugs.php.net/?id=44466&edit=1