我試圖做一個基於AJAX的登錄系統......它工作正常,在所有的瀏覽器,但IE注意:未定義指數:Internet Explorer的唯一
中生成以下錯誤
Login error
Notice: Undefined index: username in C:\Server\Apache2\htdocs\php\loginuser.php on line
Notice: Undefined index: password in C:\Server\Apache2\htdocs\php\loginuser.php on line
Notice: Undefined index: username in C:\Server\Apache2\htdocs\php\loginuser.php on line
User with this username does not exist
爲什麼地獄IE吸如此糟糕。什麼是錯我的代碼...
//ajax send login form values
$("#loginform").submit(function(){
var username=$("#username").val();
var password=$("#password").val();
$.post("/php/loginuser.php",{username:username, password:password},function(result){
$("#err_msg").html(result);
});
而你的HTML表單是...? – DontVoteMeDown
哪個版本的IE,'var_dump($ _ POST)'顯示什麼? – raina77ow
你可以發佈你的loginuser.php嗎? – Dwza