日期:2014-05-16 浏览次数:20358 次
function identifiedUser(id_name){
var username = $("#username").attr("value");
var password = $("#password").attr("value");
$.ajax({
type:"GET",
url:"../ptform/identified.asp?username="+username+"&password="+password,
success: function(data){
if (data.indexOf("N") >= 0){
alert("用户名或密码错误,请检查");
}else{
// {expires: 7, path: "/", domain: "", secure: true}
$.cookie("username", data, {expires: 7});
$("#"+id_name+" .login").html(data);
$("#userLogin").slideUp("fast");
$("#username").attr("value", "");
$("#password").attr("value", "");
}
}
});
}