title: PHP How can I keep the selected option from a drop down to stay selected on submit?
body: <p>I have: </p>
  
  <pre><code>&lt;select name="topic" style="margin-bottom:3px;"&gt; 
      &lt;option&gt;General Question&lt;/option&gt;
      &lt;option&gt;Company Information&lt;/option&gt;
      &lt;option&gt;Customer Issue&lt;/option&gt;
      &lt;option&gt;Supplier Issue&lt;/option&gt;
      &lt;option&gt;Request For Quote&lt;/option&gt;
      &lt;option&gt;Other&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>for the drop down. And when the form is submitted, It goes to a validation page. If it has errors the form keeps the original content the user put in. I have it working for all of the input fields and textarea's, but how could I do this with a drop down?</p>
  
  <p>I have the input fields staying by using: </p>
  
  <pre><code>$name = $_REQUEST["name"];
  </code></pre>
  
  <p>and in the form that shows up again, there is (ignore the fact that it is in a table):</p>
  
  <pre><code>&lt;tr&gt;
      &lt;td&gt;Name:*&lt;/td&gt;
       &lt;/tr&gt;
       &lt;tr&gt;
      &lt;td&gt;&lt;input name="name" type="text" size="15" value="&lt;?php echo $name ?&gt;" maxlength="200" /&gt;&lt;/td&gt;
       &lt;/tr&gt;
  </code></pre>
  
  <p>So, any ideas for drop downs?</p>