RE: [PHP] about $_post
| From: | Cal Evans | Date: | Thu, 19 Sep 2002 13:00:59 +0000 |
| Subject: | RE: [PHP] about $_post | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-116867@lists.php.net to get a copy of this message | ||
Yes.
$_POST[ID]
Since there are no quotes around the variable name ID and no dollar sign in
front of it, PHP will look for a constant named ID and if one is not found
it will blow chow.
$_POST ['ID']
Should work find, assuming a variable named ID came from your form. However,
I wouldn't get in the habit of writing my arrays like this. It's confusing
to say the least.
=C=
*
* Cal Evans
* The Virtual CIO
* http://www.calevans.com
*
-----Original Message-----
From: Meltem Demirkus [mailto:mdemirkus@momentum-dmt.com]
Sent: Thursday, September 19, 2002 6:35 AM
To: php-general@lists.php.net
Subject: [PHP] about $_post
Hi,
I just want to learn if there is any differen between
$_POST[ID] and $_POST ['ID'] ......If there is.. does it cause a
problem ?..
thanks
meltem
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php