0
I’d like it if the allowSubmit
be false, he did not execute the action of form
(action="logintest.php"
).
How can I do that?
function check_if_capcha_is_filled (e) {
if(allowSubmit)
return true;
else{
alert('Fill in the capcha!');
//Código aqui
}
}
<form method="post" onsubmit="check_if_capcha_is_filled()" action="logintest.php">