Forum Moderators: coopster

Message Too Old, No Replies

Controlling drop down boxes

         

ramoneguru

1:01 am on Mar 27, 2005 (gmt 0)

10+ Year Member



I've created and populated a drop down box with around 300 names using this:

<?php

$sql = "SELECT FName FROM Individual ORDER BY FName";
$result = mysql_query($sql) or die(mysql_error());
$number = mysql_num_rows($result);

$i = 0;

$menu = "";

//populate box
while ($number > $i)
{
$row = mysql_result($result,$i,"FNAme");
$menu .= "<option value=\"$row\">$row</option>\n";
$i++;
}//end while

// display drop down

print "<select name=\"firstName\">\n";
print $menu;
print "</select>\n";

?>

Is there a way to force the drop down box to drop in any direction I want (up/down)? Right now this box is towards the bottom of the browser and drops up, I would like to force it to drop down (and obey the laws of physics).
--Nick

coopster

2:53 pm on Mar 27, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Roll down further in your browser ;)

Sorry, couldn't resist. Seriously though, I believe this is controlled by the browser itself and I'm not aware of any *overrides* per say, javascript or otherwise.

ramoneguru

8:34 pm on Mar 28, 2005 (gmt 0)

10+ Year Member



Yeah, I was afraid of that, oh well. Thanks though.