Re: Undefined Index - is this how you "declare" get & post?
| From: | Terence | Date: | Thu, 30 Oct 2003 01:37:00 +0000 |
| Subject: | Re: Undefined Index - is this how you "declare" get & post? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-168104@lists.php.net to get a copy of this message | ||
----- Original Message -----
From: "Chris W. Parker" <cparker@swatgear.com>
> 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.
error_reporting(E_ALL) tells me that I have an indefined index, but as Jon
Kriek pointed out,
perhaps reporting "all" the errors is not such a "good thing".