Why i couldn't fetch my variable from the form?

Register_Globals directive is set to OFF because of potential security issues.  PHP has this directive set to OFF since version 4.2, by default.

You will need to update your script to not require register_global.

For more information, see http://us2.php.net/register_globals


use this instead

$varname = $_POST['varname']; to retrieve a POST variable


$varname = $_GET['varname']; to retrieve a GET variable

Was this answer helpful?

 Print this Article

Also Read

I used PHP for one of the web sites I would like to move over to your hosting service. Is PHP fully supported and (if so) what versions of PHP are supported?

Yes, PHP is fully supported and we do support PHP 5.

Where can I get documentation for the Zend API?

First, here's the official website: http://www.zend.com/en/The official documentation for the...

What is the essence of PHP encryption(using crypt(),mcrypt(),etc)if data on transit isn't safe?

The apathetic response is, of course, "there is no point." If you allowed a login over normal...

What's the best way to start writing a PHP program?

Firstly figure out, on paper, exactly what you want to do. Otherwise, you'll just be coding...

I'm new to PHP, and would like to know if there is a code snippet for emailing a lost password to a subcriber

First, we must assume that you are currently storing the username/login, password and the email...