RE: [PHP] Undefined Index - is this how you "declare" get & post?
| From: | Chris W. Parker | Date: | Thu, 30 Oct 2003 00:49:19 +0000 |
| Subject: | RE: [PHP] Undefined Index - is this how you "declare" get & post? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-168094@lists.php.net to get a copy of this message | ||
Terence <mailto:terence@sunway.edu.my>
on Wednesday, October 29, 2003 4:40 PM said:
> Since I started using error_reporting(E_ALL), I havent found (in my
> opinion) a good way to declare GET and POST variables when getting
> them from a form or querystring. I have searched google and the docs
> for several hours now without much luck.
Why would you want to declare a GET or POST variable in the first place?
You'd be overwriting whatever value was stored from the form.
Also, depending on your version of PHP you should be using $_GET and
$_POST and not $HTTP_GET_VARS or $HTTP_POST_VARS.
hth,
Chris.
--
Don't like reformatting your Outlook replies? Now there's relief!
http://home.in.tum.de/~jain/software/outlook-quotefix/