Start PHP Code RESULT

Welcome to the Guessing Machine!


Type your guess here:
Then press <ENTER> or <RETURN>

End PHP Code RESULT
The PHP Code START
<?php
$num_to_guess = 42;
$message = "";
extract($_POST);
if ( ! isset($guess)) {
    $message = "Welcome to the Guessing Machine!";
}
elseif ($guess > $num_to_guess) {
    $message = "$guess is too big! Try a smaller number!";
}
else if ($guess < $num_to_guess) {
    $message = "$guess is too small! Try a largernumber!";
}
else { // must be equivalent
    $message = "Well done!";
}
?>

<h2>
  <?php
     print $message;
   ?>
</h2>