hai friends,

my select Menu as follows

Code:
<select name="cmbgender" id="cmbgender" >
                <option>Male</option>
                <option>Female</option>
            </select>
When the user attempt to edit a record, i load the data relavent to the record from the db in to a form where above control is a part of it.

Now i need to select Male if the value in the db is Male, else Female.

How do i do that ?

Assume, $gender is the variable which holds the Male / Female data retrived.