title: drop down list keep last selected option
body: <p>I have created a profile page in php where a user using an html drop down list chooses gender. The html code is the following:</p>
  
  <pre><code>Gender&lt;select name="gender"&gt; 
      &lt;option value=" "&gt; EMPTY &lt;/option&gt; 
      &lt;option value="Male"&gt;Male&lt;/option&gt; 
      &lt;option value="Female"&gt;Female&lt;/option&gt; 
  &lt;/select&gt; 
  </code></pre>
  
  <p>After the user chooses gender the form dispatches and saves the data into database. The problem is that if the user visits again the profile page the drop down list does not keep the value that the user selected before, but shows the first option value each time. How can I modify this so that the drop down list will show the selected value that users enters before?</p>