Hello friends
$.post("include/email_validate.inc.php", {
email: $('#email').val()
}, function(response){
if(response=="email_exits")
{
alert("E-mail Address Already Registered");
return false;
}
else if(response=="invalid_email")
{
alert("Invalid E-mail Address" );
return false;
}
});
Can you explain the above code? I think it is related with validation. What I am not understanding is specifically this line...
$.post("include/email_validate.inc.php", { email: $('#email').val() }, function(response)
Please tell me what this code is doing?