简体   繁体   中英

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM