Page 1 of 1

Sizing a Pull Down Box

Posted: Tue Jul 25, 2006 1:36 pm
by PastorHank
In my program I have the following

Code: Select all

echo "<form action='fawns.php' method=post>"; 	
	echo "<select name='fawnlist'>";
	   while ($row = mysql_fetch_array($result)) {	
	         extract($row);
   	 echo "<option value='$deernumber'>$deernumber\n";	
	   }
	echo "</select>";	
	echo "<input type=submit value=submit size='10'>";
	echo "</form>";
The "size" value isn't working. My pulldown (while containing the correct number of animals) only shows one, I'd like to make the box larger.

TIA

Posted: Tue Jul 25, 2006 1:38 pm
by hawleyjr
The size attribute is being set in your input button not the drop down list.

Posted: Tue Jul 25, 2006 1:42 pm
by PastorHank
Thank you. I looked at that code for a day and a half. thanks again