2013-08-16 4 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"와 같이 정상적인 것으로 이름을 지정하십시오.

관련 문제