title: Remember Select Option
body: <p>I have this form:</p>
  
  <pre><code>&lt;form method='POST' action='update_ads.php'&gt;
    &lt;select size='1' name='type'&gt;
    &lt;OPTION value=''&gt;&lt;/OPTION&gt;
    &lt;OPTION value='1'&gt;Open&lt;/OPTION&gt;
    &lt;OPTION value='0'&gt;Closed&lt;/OPTION&gt;
    &lt;/select&gt;
  
    &lt;input type='submit' value='Save'&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>and this PHP file associated with it:</p>
  
  <pre><code>$id        = $_POST['id'];
  $type = addslashes($_POST['type']);
  $query =  mysql_query("UPDATE ads SET type='$type' where id=$id");
  </code></pre>
  
  <p>What can I add so that the option that the user choose before they clicked "submit" comes back when they re-open it? Thanks!</p>