note 23250 added to faq.html
| From: | netopiaNOSPAM at NOSPAMhotmail dot com | Date: | Fri, 12 Jul 2002 19:06:46 +0000 |
| Subject: | note 23250 added to faq.html | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-33001@lists.php.net to get a copy of this message | ||
To the gentleman who was having problems processing POST variables:
$name1 = $_POST[name];
...is always wrong, unless name is some constant you've defined. If you're looking for
the form variable called name, you have to use 'name'.
Read the manual under Basic Language Reference, where it says "Why is $foo[bar] wrong?"
http://www.php.net/manual/en/language.types.array.php
Incidentally, none of this has much to do with getting arrays from your POSTDATA, per se.
--
http://www.php.net/manual/en/faq.html.php
http://master.php.net/manage/user-notes.php?action=edit+23250
http://master.php.net/manage/user-notes.php?action=delete+23250
http://master.php.net/manage/user-notes.php?action=reject+23250