Hello friends -
I recently used a pre coded formmailer and adjusted the form content. When I tested the form, it went through but 4 deprecated errors popped up. I have used the formmailer before with success. I am having trouble figuring out the error on my own. Below are the errors that show upon completing the form:
Deprecated: Function eregi() is deprecated in /home/content/03/11789103/html/formmailer.php on line 453
Deprecated: Function eregi() is deprecated in /home/content/03/11789103/html/formmailer.php on line 460
Deprecated: Function eregi() is deprecated in /home/content/03/11789103/html/formmailer.php on line 338
Deprecated: Function eregi() is deprecated in /home/content/03/11789103/html/formmailer.php on line 546
Message Sent
Thank you for your inquiry
And the lines that correspond to the errors. I have researched the error and it looks like the errors are due to the formmailers use of eregi:
453 if(eregi($header_injection_regex,$_POST[$reply_to_field[$config]]))
$security_filter.="<li>Header injection attempt detected, mail aborted.</li>\n";
460 if(eregi($header_injection_regex,$_POST[$reply_to_name[$config]]))
$security_filter.="<li>Header injection attempt detected, mail aborted.</li>\n";
338 if($cur_email=="" || !eregi($regex, $cur_email))
546 if($cur_email=="" || !eregi($regex, $cur_email))
Thank you all in advance for any guidance given.
Regards,
Gene