How to pass select option to an input submit button
<p>Say I have:</p>

<pre><code>&lt;form&gt;
 &lt;select&gt;
   &lt;option value="page1.html"&gt;Page 1&lt;/option&gt;
   &lt;option value="page2.html"&gt;Page 2&lt;/option&gt;
  &lt;/select&gt;
 &lt;input type="submit" value="Submit"&gt;
&lt;/form&gt;
</code></pre>

<p>How do I make it so that when I select an option, I click on this Submit button and it goes to the appropriate link that was selected?</p>