\'输入邀请码成功的处理代码 dim pc,rd pc=Request.Form(\"postcode\") if checkpostcode(Request.Form(\"postcode\")) and FindCodeID(pc)<>0 then \'输入的邀请码有效 \'增加点数 Pconn.Execute(\"Update [adv_broker] Set count_b=count_b+1,count_z=count_z+1 Where userid=\"&FindCodeID(pc)) Pconn.Execute(\"Update [adv_config] Set adv_click1=adv_click1+1 where adv_type=1\")
Else \'如果输入的注册邀请码无效,则判断是否开启了限制注册的功能 if chkregcode() then \'开启了邀请码限制注册功能! Response.redirect \"showerr.asp?ErrCodes=
您填写的注册邀请码无效。&action=OtherErr\" exit Sub end if end if \'代码结束
3、找到 Dvbbs.Execute(\"UpDate Dv_Setup Set Forum_UserNum=Forum_UserNum+1,Forum_lastUser=\'\"&Dvbbs.HtmlEncode(username)&\"\'\")下面插入
Pconn.Execute(\"Update [adv_codes] Set isreg=1,regid=\"&rs(\"userid\")&\" where codes=\'\"&pc&\"\'\")