My program goes like this..
I have a page where user id and password are entered.
When they click submit button(input type is not submit), it goes to Javascript and sends AJAX request for another PHP page and checks whether those userid and password exists are not.
Javascript coding:
Expand|Select|Wrap|Line Numbers
- var url="abc.php";
- url=url+"?id="+str.username.value;
- url=url+"&pass="+str.password.value;
- url=url+"&sid="+Math.random();
- xmlHttp.onreadystatechange=stateChanged;
- xmlHttp.open("GET",url,true);
- xmlHttp.send(null);
- document.forms[0].submit();
Anyone please give me a fix for this issue.
Thanks a million in advance.
VJ