PHP Filtering Form Input

Hello I have a simple form on my site that allows users to send feedback. The form is validated in more than one way sometimes I get emails that are just a bunch of gibberish like: sadfasdasd sadfsa dasd werqwer gsdfh hdfgh.

Question: Is there any clever way to check input string to prevent this?


Distinguishing between rubbish and sense is a very hard job for a computer and apparently not easy for humans either. The only way to do that with any degree of success is to use some sort of spam filtering software.

链接地址: http://www.djcxy.com/p/92736.html

上一篇: C#电子邮件正则表达式没有空间或! 字符允许

下一篇: PHP过滤表单输入