0
내 SendComment 코드에 Captcha를 사용하려면 어떻게해야합니까 ??Captcha 내 코드 사용 방법
내 보안 문자 코드 :
if(empty($_SESSION['6_letters_code']) || strcasecmp($_SESSION['6_letters_code'], $_POST['6_letters_code']) != 0)
{
echo $msg .= '<script type="text/javascript">alert("Please Enter Letters Correctly .")</script>';
}
SendComment 코드 :
function sendcomment(){var cname = document.getElementById('sugname').value;
var qplace = document.getElementById('amountqplace').innerHTML;
var qfood = document.getElementById('amountqfood').innerHTML;
var vfood = document.getElementById('amountvfood').innerHTML;
var text = document.getElementById('sugtext').value;
var datacom = "cname=" + cname +"&qplace=" + qplace + "&qfood=" + qfood + "&vfood=" + vfood + "&text=" + text;
loadXMLDoc('comment.php?id=<?php echo($uid);?>&type=1','',datacom,1,"Comment Sent Successfully.");
보안 문자 코드를 잘못 입력하거나, 경고를 입력하지 않은 경우 나, 내 SendComment 코드에 보안 문자를 입력하려면 "제발 정확한 문자 입력 "및"정확하게 입력 한 경우 "