You're probably used to having register_globals = on. This is turned off by default since 4.2.0.
I changed your code around a bit according to my coding style. I'm quite fond of using the associative arrays that PHP provides.
This works on apache (I have no experience with IIS):
<?php
//Handle Input here
//Check if $submit has a value of "Go" - The Validator
if(isset($HTTP_POST_VARS['userquery'])){
//The Processor
echo("You wrote " . $HTTP_POST_VARS['userquery'] . "<br>\n");
echo("You could have done whatever you want with the input instead\n");
exit;
}
?>
<!-- The Frontend HTML form -->
<form action="<?php print($_SERVER['PHP_SELF']); ?>" method="POST">
Input a word : <input type="text" name="userquery"><input type="submit">
</form>