try setting
"register_globals = On" in the php.ini file.
Amish wrote
This worked. Thanks. php.ini says that this can be a security problem,
what kind of security problem can this be?
php4.2 onwards keep register_globals = off by default
i.e.
you will have to write
$var_name=$_GET['bar'];
if the method is post then
$var_name=$_POST['bar']
more info: