This is a very simple and insecure method of passing data. If this script does not work for you, then PHP has been configured with register_globals set to OFF in the php.ini file. All installations of PHP 4.2.0 and above default to OFF.
The correct way to obtain the data in the example above is: RESULT.PHP
Code:
<?php
print 'You entered: ' . $_POST[mydata];
?>
Further details are explained at:
http://www.php.net/manual/en/security.registerglobals.php
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.