I am not familiar with PHP. I found a php form emailer from http://www.freecontactform.com/email_form.php and edited the .php file to match my html by changing the name elements.
I already fixed the syntax error with line 38 by removing the +$/" from:
$string_exp = "/^[A-Za-z .'-]+$/";
I tried to resubmit the form, again and came up with this error:
Parse error: syntax error, unexpected T_STRING in D:\Hosting\7000100\html\gmsngrqst.php on line 51
... this corresponds with the line:
$email_message = "Form details below.\n\n";
the surrounding coding is:
if(strlen($error_message) > 0) {
died($error_message);
}
$email_message = "Form details below.\n\n";
function clean_string($string) {
$bad = array("content-type","bcc:","to:","cc:","href");
return str_replace($bad,"",$string);
}
I would appreciate any help on this issue as I am unsure of how to even search for an answer online for this error.