title: How can the values of radio button and select options be passed to next page?
body: <p>I have two forms. When I click "submit" in the first one, it takes me to the second one. I'm trying to pass two information through my form. In details, suppose I've selected radio button 2 and option 3 in my first form. When I go to the second form, I want radio button 2 and option 3 already selected. How can this be done in html or php?</p>
  
  <p>My codes are given below.</p>
  
  <pre><code>&lt;form action="form2" method="post"&gt;    
     &lt;p&gt;&lt;input type="radio" name="radio" value="radio_1"&gt;Radio 1&lt;/p&gt;
     &lt;p&gt;&lt;input type="radio" name="radio" value="radio_2"&gt;Radio 2&lt;/p&gt;
     &lt;p&gt;&lt;input type="radio" name="radio" value="radio_3"&gt;Radio 3&lt;/p&gt;
     &lt;select name="select"&gt;
        &lt;option value="option_1"&gt;Option 1&lt;/option&gt;
        &lt;option value="option_2"&gt;Option 2&lt;/option&gt;
        &lt;option value="option_3"&gt;Option 3&lt;/option&gt;
     &lt;/select&gt;    
     &lt;input type="submit" name="submit" value="submit"&gt;    
  &lt;/form&gt;
  &lt;form&gt;
     &lt;p&gt;&lt;input type="radio" name="radio" value="radio_1"&gt;Radio 1&lt;/p&gt;
     &lt;p&gt;&lt;input type="radio" name="radio" value="radio_2"&gt;Radio 2&lt;/p&gt;
     &lt;p&gt;&lt;input type="radio" name="radio" value="radio_3"&gt;Radio 3&lt;/p&gt;
     &lt;select name="select"&gt;
        &lt;option value="option_1"&gt;Option 1&lt;/option&gt;
        &lt;option value="option_2"&gt;Option 2&lt;/option&gt;
        &lt;option value="option_3"&gt;Option 3&lt;/option&gt;
     &lt;/select&gt;    
  &lt;/form&gt;
  </code></pre>