Why Is This Pull Down Menu Displayed In The Opposite Directi
Posted: Sun May 22, 2011 4:37 pm
I'm trying to create this form with three pull down menus. The first pull down menu has the heading "Seeking A" with options "Man" and "Woman". The second and third pull down menus age ranges from 18 to 99 years. Everything works ok, except that the age pull down menus display the ages upwards instead of downwards as should be expected. What could possibly be the problem. I have the form displayed below.
Code: Select all
<form id="search_profiles_form" action= "profile_search.php">
02
03
04
05
06
07
Seeking A:
08
<select name= "sex">
09
<option value= "man">Man</option>
10
<option value= "woman">Woman</option>
11
<option value= "both">Both</option>
12
<select>
13
14
15
<p> <tab> Age Range: <?php
16
print '<select name= "min_age">';
17
for ($age = 18; $age <= 99; $age++) {
18
print "\n<option value=\"$age\">$age</option>";
19
}
20
print '</select>'; ?> </tab>
21
22
<tab> and: <?php
23
print '<select name= "max_age">';
24
for ($age = 18; $age <= 99; $age++) {
25
print "\n<option value=\"$age\">$age</option>";
26
}
27
print '</select>'; ?> </tab> </p>
28
29
</form>