sorry, in your mail.cgi script change this line, changes in bold..
Code:
if ($firstname eq "") {
	$message = $message.$errmsg ;
	$found_err = 1 ; }

to 

if ($strfirstname eq "") {
	$message = $message.$errmsg ;
	$found_err = 1 ; }
and look at the other variables, in your mail.cgi script look at these lines
print MAIL "To: $email\n";
print MAIL "From: $firstname\n";

and see if you need to change thme as well to your form variables. or send me the form again and I will change them.