This should work if (isset($_POST["user"])) $username = $_POST["user"];
----- Original Message ----- From: "Martin Lindhe" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]