Re: php warning messages
| From: | R'twick Niceorgaw | Date: | Thu, 13 Dec 2001 15:08:47 +0000 |
| Subject: | Re: php warning messages | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-10874@lists.php.net to get a copy of this message | ||
This should work
if (isset($_POST["user"]))
$username = $_POST["user"];
----- Original Message -----
From: "Martin Lindhe" <martin@humany.com>
To: <php-windows@lists.php.net>
Sent: Thursday, December 13, 2001 9:10 AM
Subject: [PHP-WIN] php warning messages
> 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
>
>