jquery ajax form function(data)
- by RussP
Can some one please tell me where I have gone wrong. What ever I do I get the answer "no"
JQuery to send data to php query
$j.post("logincheck.php",{
username:$j('#username').attr('value'),
password:$j('#password').attr('value'),
rand:Math.random() } ,
function(data) {
if(data=='yes') {alert('yes');}
else {alert('no');}
}
);
Here is…