Posted by Chung Leong on 11/01/05 03:03
Mike wrote:
> I'm new to PHP - moving over from ASP.
>
> I have a number of include files, the first of which sets the value of
> a variable $loginmsg. I use that variable in a subsequent include
> file, but get a "Notice: Undefined variable loginmsg" warning. I've
> had a good look at previous posts concerning this warning, and see that
> isset() is recommended to prevent this kind of warning. Is this
> totally necessary?
One thing to remember in PHP is that global variables are not
automatically availabe within functions.
Navigation:
[Reply to this message]
|