title: How to get selected value from dropdown list after submitting form in php
body: <p>I would like to remain my drop down value which I select for submitting after posting the form. My form posts to the same page.</p>
  
  <pre><code>$query = "SELECT countryName,countryCode FROM   tcf_countries";                                                
  $result = mysql_query ($query); 
  echo "Country: &lt;select name='country' value=''&gt;"; 
  while($r = mysql_fetch_array($result)) {
      $id = $r['countryCode'];
      $cname = $r['countryName'];
      echo "&lt;option value=".$id."&gt;".$cname."&lt;/option&gt;";
  }
  echo "&lt;/select&gt;"; ?&gt;
  </code></pre>