I post my code here.(I add the jquery into my web page)
var dataString ='username='+ username + '&password=' + password; //alert (dataString);return false; $.ajax({ type: "POST", url: "http://hisencha.sinaapp.com/login.php", data: dataString, success: function(data) { if(data=='success'){ window.location.href='list.html'; } else{ alert(data); }; } }); above is part of javascript
here is php(demo)
<?php if ($_POST['username']=='aaa' && $_POST['password']=='aaa') { echo 'success'; } else { echo 'error'; } ?> What can I do now?And how to fix the error about acrossing domain.
Thank you thank you!