Código Javascript
:
Ver originalfunction captcha($randomnumberhide, $randomnumberwritten){
if($randomnumberhide == $randomnumberwritten){
document.form1.submit()
}else{
alert("Should write the validation numbers correctly.");
document.form1.Submit.disabled=true;
return false;
}
}
Código HTML:
Ver original<form action="process.php" method='POST' name="form1" onsubmit='return captcha();'>
<!---aqui tengo mas inputs--->
<input type="submit" value="Register" onclick="captcha(document.form1.randomnumberhide.value, document.form1.randomnumberwritten.value)">
Saludos (: