if trim(u_name)="" then Response.write "<div align='center'><a class='link8' href='Javascript:history.go(-1)'>用户名不能为空格,返回。</a></div>" Response.write "</body></html>" Response.end else u_name=rtrim(trim(u_name)) end if
if instr(u_name," ")<>0 then Response.write "<div align='center'><a class='link8' href='javascript:history.go(-1)'>用户名中不能包含空格,返回。</a></div>" Response.write "</body></html>" Response.end end if
if instr(u_pass," ")<>0 then Response.write "<div align='center'><a class='link8' href='javascript:history.go(-1)'>密码中不能包含空格,返回。</a></div>" Response.write "</body></html>" Response.end end if
Set MyCommand=Server.CreateObject("ADODB.Command") Set MyCommand.ActiveConnection=Con MyCommand.CommandType=adCmdStoredPRoc MyCommand.CommandText="proc_UserRegBase"
if check_reg=0 then set RS=rs.NextRecordSet VailCodeLogin=rtrim(trim(RS("ValidCodeLogin"))) session("lotto_isLogin")=rtrim(trim(RS("ValidCodeLogin"))) Session("lotto_username")=u_name