my $r = CGI->new(); my $form_data = $r->Vars(); # Do some checking on form data - validation $DB->insert(table => 'customers', data => $form_data);