ลองแล้วค่ะแต่ก็ไม่ได้
ขึ้นประโยคนี้ค่ะ
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\AppServ\www\captchaZDR\sample\check.php:2) in C:\AppServ\www\captchaZDR\sample\check.php on line 11
wrong code
ได้แล้วค่ะแต่ได้แบบนี้ค่ะ
<?php
//Check if form submit with capt variable
/*if(!isset($_POST['submit']) || !isset($_POST['capt'])) {
//Form not submit return error
exit("Error");
}*/ต้องเอาออกมันถึงออกเพราะอะไรค่ะ
//session must be start to perform check
session_start();
//check input capt with session captcha
if($_SESSION['captcha']!=$_POST['capt'] || $_SESSION['captcha']=='BADCODE')
{
//wrong captcha exit the program not continue.
exit("wrong code");
}
//correct captcha continue program
echo "Excellent";
// ....................
?>