In a registration form of mine the user selects the month, day and the year of their birthday with a drop-down menu. In the 'Update' form I would like their birthday to automatically display its selection. For example if my profile displays "jul 20 1984" my update form should be already display "jul 20 1984" in the the 3 select menu, but I keep getting 'None Selected'? Any help is greatly appreciated!
<select name="bday_dd"> <?php $bday_dd='23';//lets say so for example for($i=1; $i<32; $i++) { if($i==$bday_dd){echo '<option selected="selected">'.$i.'</option>';} else{echo '<option>$i</option>';} } ?> </select> PHP: On similar lines for month and year.