in reply to There's got to be a better way?

You should be using CGI.pm instead.

for this example here, you might want to store these values in another hash an array...(it's dumb but it works)

for $i (1..6) { $checked[$i] = 'CHECKED' if $FORM{"h0$i"}; }
next if you want to check wether h04 is checked, you use $checked[4]

just an idea

Updated: did I say hash?
He who asks will be a fool for five minutes, but he who doesn't ask will remain a fool for life.

Chady | http://chady.net/