title: PHP simple maths quiz program
body: <p>I'm trying to create a maths quiz page. The first page needs to generate a question shown as a header, that asks the user what two random numbers are multiplied together.
  Then depending on the users input, it takes them to a different page. 
  If they are correct it displays the paragraph "You are correct!".
  If they are wrong it displays the paragraph "You are incorrect" and invites the user to try again.
  and if they enter a string it displays the paragraph "I don't understand your response" and invites the user to try again.</p>
  
  <p>So far I have the below code, the layout is correct but the header isn't working, and I've attempted to display a new page, but again, they don't load. Anyone know where I'm going wrong?</p>
  
  <pre><code>&lt;?php
  $first = Rand(1,10);
  $second = Rand(1,10);
  
  echo &lt;h1&gt;"What is " . $first . "times " . $second . "?"&lt;/h1&gt;;
  
  if(is_int($_POST['answer']) == 1){
       if($_POST['first']*$_POST['second'] == $_POST['answer']){
          header("Location: correct.html");
  
          exit();  
      }
      else{
          header("Location: incorrect.html");
  
          exit();     
      }   
  }
  else if(is_string($_POST['answer']) == 1) {
      header("Location: response.html");
  
          exit();     
  }
  
   ?&gt;
   &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
   &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
   &lt;head&gt;
   &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
   &lt;title&gt;Maths Quiz&lt;/title&gt;
   &lt;/head&gt;
  
   &lt;body&gt;
   &lt;form method="POST" action="&lt;?php echo $_SERVER['file:///X|/Software Development/PHP_SELF']; ?&gt;"&gt;
   &lt;p&gt;Answer&lt;br/&gt;
   &lt;input type="text" id="answer" name="answer" /&gt;&lt;/p&gt;
   &lt;p&gt;&lt;/p&gt;
   &lt;button type="submit" name="submit" value="send"&gt;Submit&lt;/button&gt;
   &lt;input type="hidden" name="answer" value="&lt;?php echo $answer; ?&gt;"/&gt;&lt;/p&gt;
   &lt;/form&gt;
   &lt;/body&gt;
   &lt;/html&gt;
  </code></pre>