captcha.js
Código Javascript:
process.phpVer original
$(function(){ $("#refreshimg").click(function(){ $.post('newsession.php'); $("#captchaimage").load('image_req.php'); return false; }); $("#captchaform").validate({ rules: { captcha: { required: true, remote: "process.php" } }, messages: { captcha: "Correct captcha is required. Click the captcha to generate a new one" }, submitHandler: function() { alert("Correct captcha!"); }, success: function(label) { label.addClass("valid").text("Valid captcha!") }, onkeyup: false }); });
Código PHP:
he probao a cambiar de todo pero no hay manera,haber si alguien puede orientarme de como hacerlo,gracias Ver original
<?php // Begin the session // To avoid case conflicts, make the input uppercase and check against the session value // If it's correct, echo '1' as a string echo 'true'; // Else echo '0' as a string else echo 'false'; ?>