无标题文档
// JavaScript Document
$(function(){
$(".cz").click(function(){
$(":text").val("");
$(":password").val("");
});
$(".zc").click(function(){
if($(":text").val()==""||$(":password").val()==""){
alert("不允许为空!");
return false;
}
var b=new Array();
$(":input").each(function(i){
if(i<=1){
b[i]=$(this).val();
}
});
$.get(
"reg.php",
{"b":b,
"time":Math.random()
},
function(d){
if(d=="ok"){
window.location="index.php";
}
}
);
})
$(".tuichu").click(function(){
$.get(
"reg.php",
{"exit":"0",
"ddd":Math.random()
},function(d){
if(d=="ok"){
window.location="index.php";
}
}
);
})
});
已登录
用户名:
iconv("utf-8","gbk",$_SESSION['n']); ?>
密 码: