Click to See Complete Forum and Search --> : Variables ignored if passed by url?


Heywood
10-22-2002, 09:44 PM
I am running my own server, and I suspect my php install is to blame for this problem. This simple code:

<?php

print("$var is the variable in this case");

?>


when you enter something like this:

http://www.mysite.com/test.php?var=foo

I get in response:


is the variable in this case

it will ignore any variables passed through from the browser.

if I set a value in the script, it works just fine.

does this sound familiar to anyone? Configuration problem, maybe? or should I reinstall php and everything?

Tekron-X
10-22-2002, 10:28 PM
It is mostlikley I believe to be that in the php ini register_globals = off it should be at = on

Heywood
10-23-2002, 12:41 AM
that worked perfectly, actually, thanks a bunch. I went through the website, and my books and couldn't find a dang thing..

Tekron-X
10-23-2002, 07:48 AM
LOL no problem I found that out here too :)