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> 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. 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
Archived
This topic is now archived and is closed to further replies.