might also work with :
and note the two $$ in front of var.
jcokos's might be safer though
If you can't find any nice, central place to put this, like in a config file or something, you can look at the auto prepend stuff in php, put that in your .htaccess file.
check to see if your script has got a new version that doesn't have to work with register globals turned on - if you can upgrade, you will probably be more secure, and won't have to do all this.
|