Sizing a Pull Down Box

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
PastorHank
Forum Contributor
Posts: 117
Joined: Sat Jun 03, 2006 7:58 am
Location: Texas Hill Country

Sizing a Pull Down Box

Post 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
User avatar
hawleyjr
BeerMod
Posts: 2170
Joined: Tue Jan 13, 2004 4:58 pm
Location: Jax FL & Spokane WA USA

Post by hawleyjr »

The size attribute is being set in your input button not the drop down list.
PastorHank
Forum Contributor
Posts: 117
Joined: Sat Jun 03, 2006 7:58 am
Location: Texas Hill Country

Post by PastorHank »

Thank you. I looked at that code for a day and a half. thanks again
Post Reply