I think your having the same problem that i was having with var.s they work if they are defined in the php page but when comeing form another page they play up. check your php info and look to see if register_globals (under the php core settings) is on or off. if it is off you will need to change the php.ini, which is usually should be c:\windows\php.ini. find the register_globals and turn it on (register_globals = On), I also changed the order of the variables when i changed this so i don't know if this help effect the change (variables_order = "GPCES").
hope this solves your problem.
😃