2013-08-16 48 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」等正常的聲音。

相關問題