|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-03-18 10:05 UTC] colder@php.net
[2008-03-18 16:59 UTC] colder@php.net
[2008-03-19 23:40 UTC] merylf at iinet dot net dot au
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 14:00:01 2025 UTC |
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.