开发者

Contact Form Domain Blacklists (using java, html or php)

开发者 https://www.devze.com 2022-12-18 23:36 出处:网络
I\'m using HTML contact forms on a business site to post lead information to Salesforce.We\'re using auto-responders to deliver key information to people who complete a form asking for additional info

I'm using HTML contact forms on a business site to post lead information to Salesforce. We're using auto-responders to deliver key information to people who complete a form asking for additional information. The goal is to reject forms that are submitted by competitors. It doesn't need to be bullet proof; the main idea is to reject and form that has an email address associat开发者_如何转开发ed with a competitor's domain.

Can anyone help? Thanks!


Try making an array of all emailadresses like this

$emails = array($this->getEmails());
if(is_array($emails) && in_array($_POST["emailadres"],$emails))
{
// if we are here then it is not blacklisted
return true; // or whatever 
}
else
{
return false; // eighter it was a blacklisted email or the $emails wasnt an array  
}


Are you programming the form? If so, input validation? Not sure of the question here, but sounds like simple input validation.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号