
jr
Novice
Oct 18, 2000, 6:42 AM
Post #5 of 5
(288 views)
|
|
Re: Using info for form select box
[In reply to]
|
Can't Post
|
|
Okay, but this part of the code is very small: <BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">code:</font><HR> %yearprice = ( 1900 => '4375', 1901 => '4375', 1902 => '4375', 1903 => '4375', 1904 => '4375', 1905 => '4375', 1906 => '4375', 1907 => '4375', 1908 => '4375', 1909 => '4375', 1910 => '4375', ); # These years and numbers increase up to # 2000, with differing prices beginning at 1985 # The only place this is called from is: print qq~ <td><font face="Arial"><select size="1" name="vehic_year"> <OPTION SELECTED></OPTION> <option value="1999">1999</option> # Prior line inserted for testing~; foreach $key (sort keys %yearprice) { print "<OPTION VALUE=\"$key\">$yearprice{$key}</OPTION>\n"; } print qq~ </select></font></td>~; </pre><HR></BLOCKQUOTE> [This message has been edited by jr (edited 10-18-2000).]
|