Dropdownmenu SELECTED value as per value return fromDB
<p>All i am trying to do is to set the selected value of drop down menu according to the particular value returned from the database</p>

<p>like if person saved his gender as 'Male' and he wants to update his profile then the selected option shown on the Gender's dropdown llist should be 
shown as Male
cause if this doesn't happen 'Poor guy becomes a female due to this small problem in my code'
 KINDLY HELP!!!!!!!</p>

<p>MY Current Code:</p>

<pre><code>&lt;select name="Gender" id="Gender"&gt;
                  &lt;option selected="selected"&gt;&lt;?php echo $row_Recordset1['Gender']; ?&gt;&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>The above code work fine but causes repitition of values in dropdown like
Male
Male
Female</p>
