The Validation code does not match!";// Captcha verification is incorrect. } else {// Captcha verification is Correct. Final Code Execute here! $cookie_name = "passcheck"; $cookie_value = "TBD"; setcookie($cookie_name, $cookie_value, time() + (86400 * 30), "/"); // 86400 = 1 day so it 30 days! header("Location: http://".$_SERVER['SERVER_NAME']."/"); exit; } } ?>