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

  • 17 Benutzer fanden dies hilfreich
War diese Antwort hilfreich?

Verwandte Artikel

I'm new to PHP, where should I start?

You can refer the following link to understand about PHP code,The official PHP web site as a lot...

I have starting to know a bit of PHP, now how do I...?

---------------------------Introductory PHP Tutorials :---------------------------(in no...

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

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

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