Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2003
    Posts
    61

    Unanswered: can i ignore undefined variables?

    Is there a special command i can put on top of a php page that would ignore undefined variables?

    thank
    Noam

  2. #2
    Join Date
    Apr 2002
    Location
    Germany
    Posts
    228

  3. #3
    Join Date
    Jul 2003
    Location
    Jersey
    Posts
    11

    Re: can i ignore undefined variables?

    Originally posted by noamkrief
    Is there a special command i can put on top of a php page that would ignore undefined variables?

    thank
    Noam
    you may want to use the isset function first ??

    (http://us2.php.net/manual/en/function.isset.php) before using the variable though (or doing any checks against it)... (hope it helps)

    http://us2.php.net/manual/en/functio...-reporting.php

    http://us2.php.net/manual/en/ref.errorfunc.php

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •