> 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: [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]

Reply via email to