title: How can I select an option in a drop down box from $_GET in Php
body: <p>This question looks similar to others but seems to be unique (to the forums at least).</p>
  
  <p>I have a form on a page in which a user selects an option from a form:</p>
  
  <pre><code>&lt;!-- &lt;option value="" onClick="" &gt;Select Country&lt;/option&gt;  --&gt;
  &lt;option value="38" onClick="" &gt;Canada&lt;/option&gt;
  &lt;!-- &lt;option value="222" onClick="" &gt;United Kingdom&lt;/option&gt; --&gt;
  &lt;option value="223" onClick="" &gt;United States&lt;/option&gt;&lt;/select&gt;&lt;/td&gt;
  </code></pre>
  
  <p>It is passed on to a new form page which is coded identically to the first form. For the other fields in the form I am able to use the following echo but it does not work to select the proper option in the dropdown.</p>
  
  <p>Code to enter user original form data into new form text field:</p>
  
  <pre><code>&lt;input type="text" id='fields_city' name='fields_city'  value="&lt;?php echo $_GET['Ship_City']; ?&gt;" /&gt;
  </code></pre>
  
  <p>Code to enter user original form data into new form dropdown field:</p>
  
  <pre><code>&lt;select border="0"  class="" id="country" style="width:149px;" name="country"  size="1" selected="selected"  value="&lt;?php echo $_GET['Ship_Country']; ?&gt;"
  </code></pre>
  
  <p>I basically just need to prepopulate the dropdown with the user selected item.</p>