2013-08-16 50 views

回答

0

这会很容易做到。以下是一个PHP示例:

if($_POST[shouldBeEmpty] == "") { 
    // the field is empty, so deal with the form submission 
} 
else { 
    // you are dealing with a spammer, therefore add to the log file 
} 

当然,不要将您的字段命名为“shouldBeEmpty”。将其命名为“contactNumber”或“message”等正常的声音。

相关问题