runnerjp Posted April 27, 2012 Share Posted April 27, 2012 Can anyone suggest why the drop down is not selecting the users selected option :S <select name="level_id"> <option value="" selected="selected">- Please Select -</option> <?php mysql_data_seek($rsl,0); if (mysql_num_rows($rsl)>0): while ($rowl = mysql_fetch_assoc($rsl)):?> <option value="<?=$row1['id']?>" <?if ($row1['id']==$rowq['level_id']) echo 'selected="selected"';?>><?=stripslashes($rowl['title'])?></option> <?php endwhile; endif; ?> </select> Quote Link to comment https://forums.phpfreaks.com/topic/261703-using-php-to-sleect-value-from-drop-down-menu-not-working/ Share on other sites More sharing options...
trq Posted April 27, 2012 Share Posted April 27, 2012 Not with the information you have provided, no. Quote Link to comment https://forums.phpfreaks.com/topic/261703-using-php-to-sleect-value-from-drop-down-menu-not-working/#findComment-1341064 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.