Click to See Complete Forum and Search --> : passing parameters


Anon
07-01-2002, 07:39 PM
I pass a parameter named my_var to a php script and:

<?= $my_var ?>

does not display anything

while

<?= $HTTP_GET_VARS["my_var"] ?>

correctly displays the parameter's value.

Anyone has an idea why the first one is not working?

TIA


Aneta

wgriffiths
07-04-2002, 09:11 AM
You need to change a parameter in your php.ini file (on my system it is located in /usr/local/lib/)

change register_globals from off to on

register_globals = on

Then you need to restart the web server to apply the changes.

This should solve your problem (It did work for me)

Will