natalieG Posted July 12, 2006 Share Posted July 12, 2006 In our script, we are trying to make a list box. The browserdoes not show the options. The box shows up, just no items. We did checkthat the right number pf rows are in the table and if we change thestatement echoing the option[Line 4] to just echo $SPNAME, they display correctly.Thanks,NatalieG echo '<select name="USER">';while ($LBOXROW=mysql_fetch_array($LBOXFIND,MYSQL_ASSOC)){$SPNAME=$LBOXROW[SPNAME];echo "<option value=\"$SPNAME\"></option>\n";}//whileecho '</select>'; Link to comment https://forums.phpfreaks.com/topic/14386-make-a-listbox/ Share on other sites More sharing options...
micah1701 Posted July 12, 2006 Share Posted July 12, 2006 changeecho "<option value=\"$SPNAME\"></option>\n";toecho "<option value=\"$SPNAME\">\"$SPNAME\"</option>\n";this is more of an HTML issue then anything else :-) Link to comment https://forums.phpfreaks.com/topic/14386-make-a-listbox/#findComment-56768 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.