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 <?php print 'You entered: ' . $_POST[mydata]; ?>