<script>
function submit(account, pw) {
$.ajax({
url: 'http://IP位址/資料夾名稱/檔名.php',
type: 'POST',
data: {
Submit: 'submit',
account: $('#account').val(),
pw: $('#pw').val()
},
dataType: 'text',
error: function(xhr,t,e) {
alert(e);
},
success: function(result) { //尚未檢查
if(result > 0) {
$("#submit_result").html("帳號重複").css("color", "#f00").fadeIn();
} else {
$("#submit_result").html("加入成功!!!").css("color", "#f00").fadeIn();
//轉址
}
}
});
}
</script>
沒有留言:
張貼留言