> I am still having problems with variables not being
> remembered by included files.  I've tried using the
> global command and it still doesn't work.  I've cut
> down my two pages to contain the main stuff so you can
> see what's happening.  Basically main.php includes the
> file new.php and I want the variable '$name' to be
> remembered in it.  The other included files aren't
> important to the problem I'm having.

I just cut and pasted your code, commenting out the include()s
you say aren't important and the $name variable prints out fine.
Are you sure your not overriding its value in one of the other included
files?

On the other hand, terés no need to use global, this is only when you want
to use
global variables _inside_ a function.

Cheers!



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to