ID: 44466 Updated by: [EMAIL PROTECTED] 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