Click here to Skip to main content
16,019,435 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
if(html == 0)
{
$("#loginmsg").html('Invalid email Id or Passwords or usertype');
}
else if(html == 2)
{
$("#loginmsg").html('Invalid email ');

}
else
{
window.location.href="index.php"

What I have tried:

i dont't know what is if(html == 0).. eg 0 ,1 ,2 in jquery-ajax in php
Posted
Updated 10-Dec-19 1:28am

Looks to me like it might be a response code, and they're customizing messages for it.
 
Share this answer
 
Comments
Member 14175143 13-Mar-19 6:43am    
can you send me link i want read this document or live example
MadMyche 13-Mar-19 6:51am    
Where did you find this code?
Member 14175143 13-Mar-19 7:02am    
https://stackoverflow.com/questions/20381476/email-validation-using-jquery-ajax

if(data == 0 )
MadMyche 13-Mar-19 7:25am    
You may want to ask the author of the code then. It looks like standard user code so it is however they defined the two sides of that AJAX function
you just need to click alt+f1+f2+f3+f4
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900