1 <SELECT NAME="<% $opt{'prefix'} %>state" onChange="<% $opt{'prefix'} %>state_changed(this); <% $opt{'onchange'} %>" <% $opt{'disabled'} %>>
4 <OPTION VALUE=""<% $opt{state} eq '' ? ' SELECTED' : '' %>><% $opt{empty} %>
7 % foreach my $state ( keys %states ) {
9 <OPTION VALUE="<% $state %>"<% $state eq $opt{'state'} ? ' SELECTED' : '' %>><% $states{$state} || '(n/a)' %>
18 foreach my $opt (qw( county state country prefix onchange disabled empty )) {
19 $opt{$_} = '' unless exists($opt{$_}) && defined($opt{$_});
22 tie my %states, 'Tie::IxHash', states_hash( $opt{'country'} );