I want to include a css-hidden input field in forms and check if the hidden field has it’s value filled out then reject the submission
+1
A:
Brief tutorial: Fighting Spam with CSS
A more comprehensive article on the subject: Stopping spambots with hashes and honeypots
micahwittman
2009-12-22 07:26:48
Thanks for the help.
snew
2009-12-22 07:32:11
No problem, shaznew, and welcome to StackOverflow.
micahwittman
2009-12-22 07:49:49
A:
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.
}
Sarfraz
2009-12-22 07:30:20