piyusharora420 Posted May 23, 2012 Share Posted May 23, 2012 Hello Everyone, I am a newbie and trying to make a login form using Ajax. But, its not working for me. Please go through the attached files and let me know my mistake. Thanks in advance. 18431_.php 18432_.php 18433_.php 18434_.php Link to comment https://forums.phpfreaks.com/topic/262973-login-using-ajax/ Share on other sites More sharing options...
trq Posted May 23, 2012 Share Posted May 23, 2012 You are kidding right? Link to comment https://forums.phpfreaks.com/topic/262973-login-using-ajax/#findComment-1347901 Share on other sites More sharing options...
piyusharora420 Posted May 23, 2012 Author Share Posted May 23, 2012 No, I am not kidding. I am very new to ajax. Please reply me with the error/mistake I have made Link to comment https://forums.phpfreaks.com/topic/262973-login-using-ajax/#findComment-1347916 Share on other sites More sharing options...
trq Posted May 23, 2012 Share Posted May 23, 2012 Ive got a better idea. How about you describe your problem. Link to comment https://forums.phpfreaks.com/topic/262973-login-using-ajax/#findComment-1347929 Share on other sites More sharing options...
Kays Posted May 24, 2012 Share Posted May 24, 2012 Do you know what value is being passed here: xmlHttp.send(strURL);? Also, you're mixing up POST and GET. Your form is POST-ing data, yet your backend is GET-ing data. Weird. For all intent and purposes, please properly indent your code. And jQuery is always available if you find this too complex. Link to comment https://forums.phpfreaks.com/topic/262973-login-using-ajax/#findComment-1348195 Share on other sites More sharing options...
piyusharora420 Posted May 25, 2012 Author Share Posted May 25, 2012 Thrope, I get alert "Login falied try again later" each time I try to login. How can I get data on other file while using post method? Link to comment https://forums.phpfreaks.com/topic/262973-login-using-ajax/#findComment-1348544 Share on other sites More sharing options...
piyusharora420 Posted May 25, 2012 Author Share Posted May 25, 2012 Sorry for spelling mistake thorpe. Link to comment https://forums.phpfreaks.com/topic/262973-login-using-ajax/#findComment-1348545 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.