title: Repopulating a form after submitting to itself
body: <p>I have just started with PHP and
  I am having 2 issues with this form so far (I'm sure I will have many more lol)</p>
  
  <p>This form is supposed to submit data to itself and repopulate is the back button is pressed.</p>
  
  <p>First issue, for the radio buttons php is not reading the > before the text Mr/Mrs/Ms as the closing for the input tag.</p>
  
  <p>Second issue, I am getting and "Undefined index" error for all fields.</p>
  
  <p>The text fields sem to work though. If I type something, submit and then hit back the text is there.</p>
  
  <pre><code>    &lt;form method="POST"
        action="&lt;?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?&gt;"&gt;
  
      &lt;table&gt;
      &lt;tr&gt;
      &lt;td&gt;Title:&lt;/td&gt;
      &lt;td&gt;&lt;input type="radio" name="title" value="Mr" &lt;?php if ($_POST['title'] == "Mr") echo "CHECKED"; ?&gt;&gt;Mr.&lt;/td&gt;
      &lt;/tr&gt;&lt;tr&gt;
      &lt;td&gt;&lt;/td&gt;
      &lt;td&gt;&lt;input type="radio" name="title" value="Mrs" &lt;?php if ($_POST['title'] == "Mrs") echo "CHECKED";?&gt;&gt;Mrs.&lt;/td&gt;
      &lt;/tr&gt;&lt;tr&gt;
      &lt;td&gt;&lt;/td&gt;
      &lt;td&gt;&lt;input type="radio" name="title" value="Ms" &lt;?php if ($_POST['title'] == "Ms") echo "CHECKED";?&gt;&gt;Ms.&lt;/td&gt;
      &lt;/tr&gt;&lt;tr&gt;
      &lt;td&gt;First Name:&lt;/td&gt;&lt;td&gt;&lt;input type="text" name="fname" width=50 value="&lt;?php if ($_POST['fname']) echo $_POST[fname];?&gt;" &gt;&lt;/td&gt;
  </code></pre>
  
  <p>Thank you in advance.</p>