#44466 [Bgs]: $_POST array empty
| From: | merylf at iinet dot net dot au | Date: | Wed, 19 Mar 2008 23:40:29 +0000 |
| Subject: | #44466 [Bgs]: $_POST array empty | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-123495@lists.php.net to get a copy of this message | ||
ID: 44466
User updated by: merylf at iinet dot net dot au
Reported By: merylf at iinet dot net dot au
Status: Bogus
Bug Type: Arrays related
Operating System: Windows
PHP Version: 5.2.5
New Comment:
My apologies for being a complete idiot. And thanks for your help,
much appreciated!
Previous Comments:
------------------------------------------------------------------------
[2008-03-18 16:59:46] colder@php.net
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
Input elements that don't have names won't get sent.
------------------------------------------------------------------------
[2008-03-18 10:05:56] colder@php.net
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
------------------------------------------------------------------------
[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