RE: [PHP-WIN] php warning messages
| From: | Martin Lindhe | Date: | Thu, 13 Dec 2001 15:17:56 +0000 |
| Subject: | RE: [PHP-WIN] php warning messages | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-10875@lists.php.net to get a copy of this message | ||
> This should work
>
> if (isset($_POST["user"]))
> $username = $_POST["user"];
Cool, it works!
But im questioning the need for this.. why add extra checks on perhaps
200 locations in my code to satisfy a warning message, which points
out a nonexisting bug? i want warnings turned off but i dont want this one
in particular, is there any easy solution to that?
/Martin
> > hi all :)
> >
> > i configured php 4.1.0 to display all errors and errors (E_ALL) and
> > get warnings (Undefined index: blah) on lines like this:
> >
> > $username = $_POST["user"]; how come?
> >
> > (this is not a 4.1.0 specific behaviour, just wondering how
> i should
> > write proper code that doesnt display these warnings)
> >
> > /Martin
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-windows-help@lists.php.net To
> > contact the list administrators, e-mail:
> php-list-admin@lists.php.net
> >
> >
>