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] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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

Reply via email to