--- Received from FPU.WHITES1 799 3703                      13-12-01 15:25

  -> [EMAIL PROTECTED]
  -> [EMAIL PROTECTED]
  -> [EMAIL PROTECTED]

If memory serves that particular warning comes up as an E_NOTICE type not
an E_WARNING, so you can switch it off without getting rid of the warnings
you really DO want to see.

-Steve

--------------------------------------------------------------------------

From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
Date: Thu, 13 Dec 2001 16:17:56 +0100
Subject: RE: [PHP-WIN] php warning messages

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

This e-mail may contain confidential information and/or copyright
material. This e-mail is intended for the use of the addressee
only. Any unauthorised use may be unlawful.

If you receive this e-mail by mistake please advise the sender
immediately by using the reply facility in your e-mail software.

Friends Provident Marketing Group consists of the following
companies:

Friends Provident Life and Pensions Limited.
Registered number 4096141.
Friends' Provident Unit Trust Managers Limited.
Registered number 970641
FP Life Assurance Limited.
Registered number 782698
Friends Provident Pensions Limited.
Registered number 475201
Friends Ivory & Sime Managed Pensions Funds Limited.
Registered number 1020044
Registered and Head Office of each of the above companies is at Pixham End,
Dorking, Surrey RH4 1QA.
Registered in England. Incorporated companies limited by shares.
Ivory & Sime Trustlink Limited. Registered number 151198
Registered and Head Office: One Charlotte Square, Edinburgh EH2
4DZ.  Registered in Scotland. Incorporated company limited by
shares.

Companies within this Group transact life assurance, pension,
permanent health, unit trust and investment trust business

All are regulated by the Financial Services Authority.

--
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