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