Benim check.php ben "ok" bir yankı var;
however my if statement to check if the value is ok does not work. Basically I want to execute a javascript function after check.php looks for the email in the database.
$.ajax({
type: "POST",
url: "check.php",
data: "checkit=" + $("#checkEmail").val(),
success: function(output){
$("#userCheck").html(output);
if(output == "ok"){
alert("yay");
}
}
});