Click to See Complete Forum and Search --> : Cannot pass variables


nigeledge
10-22-2002, 07:06 AM
I just upgraded to the latest version of PHP.

Since the upgrade, PHP is acting funny. I cannot pass any variable(s) via the browser.

For example, this code here...<?php
if(!isSet($var))
{
echo("Var is not set.");
}
else
{
echo("Var is set to ".$var);
}

?>... will always output "Var is not set" even when $var is set.

Any ideas?
Thanks in advance.

MarkE
10-22-2002, 07:46 AM
check the register_globals setting in php.ini

nigeledge
10-22-2002, 02:25 PM
That was it. I didn't realize that is set to off by default now. I should probably read the release notes next time :)

Thanks.