PHP Code:
mail("info@thewebsite.com","Contact Form",$message,"From:".$_POST['email']);
mail("admin@thewebsite.com","Contact Form",$message,"From:".$_POST['email']);
These are the two lines of code that alert you about your form being submitted, right?
PHP Code:
if ( the phone number entered in the form != '1233456' ) { // phone # NOT EQUAL to 1233456
// mail your information to thewebsite.com
mail("info@thewebsite.com","Contact Form",$message,"From:".$_POST['email']);
mail("admin@thewebsite.com","Contact Form",$message,"From:".$_POST['email']);
// And everything else happens exactly the same way. It "pretends" to have been sent off.
}
That is as simple as it gets.
What do you mean by this: "Thx for the effort, (reply)...did not work at all."
If you are saying that I didn't make an effort, well, this is the last time I'll try.
Also you said: "I would think someone with more knowledge of js error checking..."
Javascript can do nothing to stop people spamming your form.
Bookmarks