RE: [PHP] error suppresion
| From: | John W. Holmes | Date: | Sun, 29 Sep 2002 18:32:59 +0000 |
| Subject: | RE: [PHP] error suppresion | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-118106@lists.php.net to get a copy of this message | ||
Just reduce the error_reporting() level while you display the form,
then. Set it so it does not show NOTICES.
---John Holmes...
> -----Original Message-----
> From: Gary [mailto:garyb10@earthlink.net]
> Sent: Sunday, September 29, 2002 2:29 PM
> To: php-general@lists.php.net
> Subject: Re: [PHP] error suppresion
>
> John W. Holmes wrote:
> >>I have a form, the action is PHP_SELF. When the form is submitted it
> >>prints the info lower on the page. The problem, the errors for the
> >
> > empty
> >
> >>fields are printed until the form is submitted. What would be the
best
> >>way of suppressing these error?
> >
> >
> > The best way to suppress your errors is to fix them. :)
> >
> > Or you can work around it by using the error_reporting() function.
> >
> > ---John Holmes...
> >
> >
>
> They are not really errors they are reporting that the form fields are
> empty until the form is submitted.
> Notice: Undefined index:
>
> Gary
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php