I want to include a css-hidden input field in forms and check if the hidden f开发者_开发知识库ield has it’s value filled out then reject the submission
Brief tutorial: Fighting Spam with CSS
A more comprehensive article on the subject: Stopping spambots with hashes and honeypots
You may try something like this:
if (isset($_POST['submit']) && strlen($_POST['hidden_field']))
{
  // proceed with submission
}
else
{
  // reject because hidden field does not contain any value.
}
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论