Very nice script Mike. Easy to install. Can you explain more about this part of the Code for me.
// Make sure the form was posted from your host name only.
// SET $domain_protect =1; for ON, $domain_protect = 0; for OFF.
// this is a security feature to prevent spammers from posting from files hosted on other domain names
// "Input Forbidden" message will result if host does not match
$domain_protect = 0;
I had to shut it off or it wouldnt work. Other than that, Everything works great.
The domain protect feature checks to make sure the form was posted from your form at your domain only. One spammer tactic is to try to post to your form script directly, it tries this because it is a bot, not an actual human typing on your website.
Did you try it this way?
// Site Domain without the
http://www like this: $domain = 'carmosaic.com';
// can be a single domain: $domain = 'carmosaic.com';
// can be an array of domains: $domain = array('carmosaic.com','someothersite.com');
$domain = 'snoqualmieweather.com';
// Make sure the form was posted from your host name only.
// SET $domain_protect =1; for ON, $domain_protect = 0; for OFF.
// this is a security feature to prevent spammers from posting from files hosted on other domain names
// "Input Forbidden" message will result if host does not match
$domain_protect = 1;