[PHP-WIN] variable access

2002-06-14 Thread Si Ming
I have register_globals = off and whenever I try to access a variable I MUST use $_SERVER["var"], $_POST["var"], etc... Is there a way to just simply access the variable as $var instead? I don't want to turn on register_globals but I like to have short variable names... Someone has told me that

[PHP-WIN] beginner question to variables

2002-06-10 Thread Si Ming
I have register_global = off. I know I have to use $HTTP_POST_VARS["VarName"] to refer to the variable but what if I need it in a calculation formula? and many variables in that formula. Ex: Your order is as follows:"; echo $HTTP_POST_VARS["tireqty"]. " tires"; echo $HTTP_POST_VARS["oilqty"]. "

[PHP-WIN] Re: Somebody please help beginner with variable problem

2002-06-10 Thread Si Ming
I have tried " wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hmm - I would check your config again as I have just run your code on my > server and it works without any problems... > > regards, > > Mikey > > "Sim" <[EMAIL PROTECTED]> wrote in message > 01c2081c$ac9b7190$6401a8