I'm using PHP and MySQL to load a listbox with values from a database. I have recently learned that a user who has Windows XP sees all the listbox choices at one time; when he clicks the arrow at the right side of the listbox, the options extend off the top and bottom of the screen and normal navigation keys do not allow him to scroll through the choices.
So here's my question. Is it possible in PHP or HTML to still load all required values into a listbox (e.g., all 50 states) but only show 10 of them on screen at a time with a scroll bar when the user clicks the down arrow so that the user can scroll up or down through the remaining choices? I tried using a size command, but it showed that number of rows on screen all the time and took up too much space.
Also, has anyone else run across this situation where a listbox is not limited to a maximum number of entries to display on screen at one time? Is this an XP thing? Something else?
In my original post, I mentioned that I used a size command (SIZE=10) but the number of rows specified displayed on the web page all the time (and not just when the user clicked a down arrow), taking up too much space. Is there a way to specify a maximum possible list box length while still only displaying one item until the user clicks the down arrow to see other maximum number of options at a time?