# Get the Form object and collect the variable # information as submitted. my $Form = new CGI; my $Vars = $Form->Vars; # Encode apostrophes so MySQL doesn 't worry. foreach ( keys %{ $Vars } ) { $Vars->{ $_ } =~ s/'/\\'/g; }