our %_form; our $_value; our $_query = CGI->new(); my @_field_names = $_query->param; foreach (@_field_names) { $_value = $_query->param($_); # convert nasty and/or special chars to html codes $_form{$_} = $_value; }