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

and

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

Was this answer helpful?

 Print this Article

Also Read

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...

How to refresh a page?

...

How to redirect from php page to another php page?

For redirecting, you can use the PHP header() function like so : header("Location:...

How can I call a command line executable from within PHP?

Check out the "Program Execution functions" here :...

How can I take a list and make each row a value in an array?

If you have a text file that looks like this : john|orange|cow sam|green|goat...