Globals off... for $PHP_SELF

newbie question:
Register Globals is OFF

echo "<p><a href=\"$PHP_SELF?target=1\">Home</a></p>";

these dont seem to work:

$HTTP_POST_VARS['PHP_SELF']?target=1 wont work...
$HTTP_SERVER_VARS['PHP_SELF']?target=1 wont work...

thanks

what are you getting instead? are you getting errors?

$_SERVER[‘PHP_SELF’]

your first exampled worked, and the above line worked for me…

thanks :slight_smile:
i sort of experimented and i got it by $HTTP_GET_VARS[‘target’] after the link is clicked…