Jump to content


Make a ListBox

  • Please log in to reply
1 reply to this topic

#1 natalieG

  • Members
  • PipPipPip
  • Advanced Member
  • 63 posts

Posted 12 July 2006 - 02:20 PM

In our script, we are trying to make a list box. The browser
does not show the options. The box shows up, just no items. We did check
that the right number pf rows are in the table and if we change the
statement echoing the  option[Line 4] to just  echo $SPNAME, they display correctly.



echo '<select name="USER">';
while ($LBOXROW=mysql_fetch_array($LBOXFIND,MYSQL_ASSOC)){
echo "<option value=\"$SPNAME\"></option>\n";
echo '</select>';

#2 micah1701

  • Members
  • PipPipPip
  • Advanced Member
  • 613 posts
  • LocationEllington, CT USA

Posted 12 July 2006 - 02:25 PM

echo "<option value=\"$SPNAME\"></option>\n";


echo "<option value=\"$SPNAME\">\"$SPNAME\"</option>\n";

this is more of an HTML issue then anything else :-)
"Confidence in the face of risk."

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users