modules.php?app=user_reg
user_reg => modules/users/user_reg.php
注册:
1。/do.php?act=reg&ajax=1&user_email=kk@kk.com
2. 验证码
function getVerCode(){
var rand_value=Math.random();
$("verCodePic").src="servtools/veriCodes.php?vc="+rand_value;
}
/servtools/veriCodes.php?vc=0.18596015027614565
3. 验证码填写正确
function ajax_check(obj,type_id){
if(type_id=='email'){
div_value='user_email_message';
suc_str='您的Email帐号可用';
}else{
div_value='user_veriCode_message';
suc_str='验证码填写正确';
}
var check=new Ajax();
check.getInfo("do.php","get","app","act=reg&ajax=1&"+$(obj).id+"="+$(obj).value,function(c){if(c){refuse_submit(type_id,c);}else{pass_submit(type_id,suc_str);}});
}
/do.php?act=reg&ajax=1&veriCode=ztonq
4.对话框
function ser_item(){
var diag = new Dialog();
diag.Top="50%";
diag.Left="50%";
diag.Title = "用户协议";
diag.InnerHtml= '
本站暂无服务条款';
diag.OKEvent = function(){diag.close();};
diag.show();
}
5. 提交
阅读(687) | 评论(0) | 转发(0) |