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?
did u check release info? http://www.php.net/release_4_2_0.php
php4.2 onwards keep register_globals = off by default
i.e. domain.com/foo.php?bar=xxxx
you will have to write $var_name=$_GET['bar'];
if the method is post then $var_name=$_POST['bar']
more info: http://www.php.net/manual/en/language.variables.external.php
About the security http://www.php.net/manual/en/security.registerglobals.php
Regards, Ranjeet