I'm using the following code to load a "Task" listbox using data from a MySQL table:
while ($row = mysql_fetch_array($sql_result)) {
$Task= $row["Task"];
$option_block .= "<OPTION value=\"$Task\">$Task</OPTION>";
}
This task list is quite long, and IE5 on a Windows 98 PC automatically adds a scroll bar and limits the number of items displayed to 11.
I learned today that someone viewing the same sight using Windows XP did not have a default limit to the number of items displayed in the listbox. The listbox extended beyond the top and bottom of the screen, and typing in characters (that would normally advance to entries beginning with those characters) had no effect on selecting a listbox item.
First, can I use PHP to limit the number of rows displayed while still loading all the values into the listbox, and--if so--how?
Second, does this Windows XP situation have to do with a PC setting? Is it a bug? Has anyone else run into this?
Thanks!
Timm