title: PHP How to keep radio button state to the next page
body: <p>I made a form with radio buttons. How can I preserve it's state after a user picked a choice? Then same form will show again in the next page and the radio button that the user picked is enabled.</p>
  
  <p>//page1.html</p>
  
  <pre><code>&lt;form method="post" action="page2.html"&gt;
      &lt;p&gt;
        &lt;input type="radio" name="q1" value="A" /&gt;
        A. &lt;br /&gt;
        &lt;input type="radio" name="q1" value="B" /&gt;
        B. &lt;br /&gt;
        &lt;input type="radio" name="q1" value="C" /&gt;
        C. &lt;br /&gt;
        &lt;input type="radio" name="q1" value="D" /&gt;
        D. 
      &lt;p&gt;
        &lt;input type="submit" name="action" value="Enter" /&gt;
      &lt;/p&gt;
    &lt;/form&gt;
  </code></pre>