Can someone explain this code?

weyseal

New Member
\[code\]$.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; }});\[/code\]Can you explain the above code? I think it is related with validation. What I am not understanding is specifically this line...\[code\]$.post("include/email_validate.inc.php", { email: $('#email').val() }, function(response)\[/code\] Please tell me what this code is doing?
 
Back
Top