Page 1 of 1

passing the variable using ?name=blah

Posted: Sun Jun 06, 2004 11:24 am
by sutejok
Hi, what do i have to set so that i'm able to pass variable this way

<a href="index.php?name=blah"> click here </a>

such that when i "echo $name" in the index.php, it will show "blah"

is it due to my setting in php or apache? i'm using php5..

pls helppppppppppppp thxxxxxxx

Posted: Sun Jun 06, 2004 11:48 am
by wwwapu
In php.ini there is a line that says register_globals=Off Turning this On echo $name works. Note that it is Off on purpose (security issues) and you should rather do echo $_GET["name"]