You're trying to use the deprecated (for security reasons) and by default disabled feature of PHP to offer all passed data as global variables. As of new PHP versions, you can access the data with
$_GET['fieldname'] (if the form has method="get")
and
$_POST['fieldname'] (if the form has method="post")