note 119608 added to reserved.variables.post
| From: | woodhavenbp at yahoo dot com | Date: | Fri, 15 Jul 2016 04:21:58 +0000 |
| Subject: | note 119608 added to reserved.variables.post | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-206020@lists.php.net to get a copy of this message | ||
There's an earlier note here about correctly referencing elements in $_POST which is accurate.
$_POST is an associative array indexed by form element NAMES, not IDs. One way to think of it is
like this: element "id=" is for CSS, while element "name=" is for PHP. If you
are referring to your element ID in the POST array, it won't work. You must assign a name
attribute to your element to reference it correctly in the POST array. These two attributes can be
the same for simplicity, i.e.,
<input type="text" id="txtForm" name="txtForm">...</input>
----
Server IP: 72.52.91.14
Probable Submitter: 173.58.207.75
----
Manual Page -- http://php.net/manual/en/reserved.variables.post.php
Edit -- https://master.php.net/note/edit/119608
Del: integrated -- https://master.php.net/note/delete/119608/integrated
Del: useless -- https://master.php.net/note/delete/119608/useless
Del: bad code -- https://master.php.net/note/delete/119608/bad+code
Del: spam -- https://master.php.net/note/delete/119608/spam
Del: non-english -- https://master.php.net/note/delete/119608/non-english
Del: in docs -- https://master.php.net/note/delete/119608/in+docs
Del: other reasons-- https://master.php.net/note/delete/119608
Reject -- https://master.php.net/note/reject/119608
Search -- https://master.php.net/manage/user-notes.php