RE: Hash, query->param help

2002-08-14 Thread Hanson, Rob
ED]] Sent: Wednesday, August 14, 2002 3:20 PM To: [EMAIL PROTECTED] Subject: RE: Hash, query->param help If the user doesn't select a county in the first place, $query->param('County') will be undefined, which means that $counties{$query->param('County')}->{Count

RE: Hash, query->param help

2002-08-14 Thread Gregg O'Donnell
If the user doesn't select a county in the first place, $query->param('County') will be undefined, which means that $counties{$query->param('County')}->{County} will be an error. So I think I need some code to handle this using something like if($query->param('County'){} I'm just stuck. "Ha

RE: Hash, query->param help

2002-08-14 Thread Hanson, Rob
> ...only the categories for which they have a value This is probably the easiest way. # this will set the value to '' if the key doesn't exist my $email_county = $counties{$query->param('County')}->{County} || ''; > And how do I wrap this so the user will select a county I'm not sure I unders