您的位置:首页网页设计ASP实例 → 用户注册及跟踪代码(三)

用户注册及跟踪代码(三)

时间:2004/11/7 2:54:00来源:本站整理作者:蓝点我要评论(0)

2. ASP代码(设立一DSN,请改动begin.asp)

----------------------------------

-----文件reg_step2.asp

<%

ValidCodeLogin=Request.QueryString("VailCodeLogin")

u_name=Request.QueryString("name")



if ValidCodeLogin="" or u_name="" then

Response.Redirect "reg_step1.asp"

Response.end

end if

%>





详细信息填写

















  

    

  

  

    

  

&nbsp;


      

        

          

          

        

      
&nbsp;

            

              

                

                

              

              

                

                

              

            
&nbsp;&nbsp;


                  

                    

                      

                      

                    

                  
&nbsp;

                        

                          

                            

                          

                          

                            

                          

                        
个人详细信息填写

                              


                              


                                

                                  

                                    

                                  

                                  

                                    

                                    

                                  

                                  

                                    

                                    

                                  

                                  

                                    

                                    

                                  

                                  

                                    

                                    

                                  

                                  

                                    

                                    

                                  

                                  

                                    

                                    

                                  

                                  

                                    

                                    

                                  

                                  

                                    

                                  

                                  

                                    

                                  

                                  

                                    

                                  

                                  

                                    

                                  

                                


                                      


                                    
真实姓名:

                                      

                                    
性别:

                                      

                                    
生日:

                                      

                                      年

                                      

                                      月

                                      

                                      日
身份证编号:

                                      

                                      


                                      作为取货凭证,请务必正确填写。
联系地址:

                                      

                                    
联系电话:

                                      

                                    
Email地址:

                                      

                                      


                                      中奖信息将以此E-mail地址发送。


                                      


                                    


                                      

                                      

                                      

                                      

                                    


                                      


                                    


                                      

                                        

                                          

                                        

                                      
请查看上述信息的正确性,我们将据此来确认您的真实身份。

                                            


                                    


                              


                            


                      


                
&nbsp;


          


    












---文件reg_step2_sub.asp



<%

islogin=Request("isLogin")

u_name=Request("u_name")



if islogin="" or u_name="" then

Response.Redirect "reg_step1.asp"

Response.end

end if

%>









详细信息填写















  

    

  

  

    

  

  

    

  

&nbsp;


      

        

          

          

        

      
&nbsp;

            

              

                

                

              

              

                

                

              

            
&nbsp;&nbsp;


                  

                    

                      

                      

                    

                  
&nbsp;

<%

true_name=Request("true_name")

sex=Request("sex")

birth=Request("year")&"-"&Request("month")&"-"&Request("date")



if IsDate(birth) then

birth=FormatDateTime(birth,1)

    if Year(birth)<=999 then %>

    

        

                            

        

      
出生日期输入错误,返回。


      <%

Response.write ""

Response.end

end if

else%>

      

        

                            

        

      
出生日期输入错误,返回。


      <%

Response.write ""

Response.end

end if



idcard=Request("idcard")

address=Request("address")

email=Request("email")

telephone=Request("telephone")



'response.write birth

'response.end



strSql="proc_UserInfoUpdate"

strSql=strSql & "  '" & islogin & "'"

strSql=strSql & " ,'" & true_name & "'"

strSql=strSql & " ,'" & sex & "'"

strSql=strSql & " ,'" & birth & "'"

strSql=strSql & " ,'" & idcard & "'"

strSql=strSql & " ,'" & address & "'"

strSql=strSql & " ,'" & email & "'"

strSql=strSql & " ,'" & telephone & "'"

Set rs = Con.Execute(strSql)

ret=rs.fields("resultID")

%>

                        

                          <%if ret=0 then%>

                          

                            

                          

                          

                            

                          

                          

                            

                          

                          

                            

                          

                          

                            

                          

                          

                            

                          

                          

                            

                          

                          

                            

                          

                          

                            

                          

                          

                            

                          

                          

                            

                          

                          

                            

                          

                          <%elseif MyCommand("ReturnCode")=-1 then %>

                          

                            

                          

                          <%elseif MyCommand("ReturnCode")=-2 then %>

                          

                            

                          

                          <%elseif MyCommand("ReturnCode")=-3 then %>

                          

                            

                          

                          <%else%>

                          <%end if%>

                        
您的个人信息填写如下:


                              


                            
真实姓名:<%=true_name%>
性别:<%=sex%>
生日:<%=birth%>
身份证:<%=idcard%>
地址:<%=address%>
Email:<%=email%>
联系电话:<%=telephone%>


                              


                            


                              

                                

                                  

                                

                              
请查看上述信息的正确性,我们将据此来确认您的真实身份。


                            


                              

请注意您现在已处于登录状态。



                              

&gt;&gt;登出--临时用&lt;&lt;



                            
请先登录。
用户超时
用户资料输入错误


                       

                      


                
&nbsp;


          


    
&nbsp;


<%Con.Close%>









---文件winload.asp









<%

validlogin=Session("lotto_isLogin")

if validlogin<>"" then

Set MyComquit=Server.CreateObject("ADODB.Command")

Set MyComquit.ActiveConnection=Con

MyComquit.CommandType=adCmdStoredProc

MyComquit.CommandText="proc_UserLogout"

MyComquit.Parameters.Append MyComquit.CreateParameter("ReturnCode",adInteger,adParamReturnValue)

MyComquit.Parameters.Append MyComquit.CreateParameter("quitid",adVarChar,adParamInput,30)

MyComquit.Parameters("quitid")=validlogin

MyComquit.Execute()

end if

Session("lotto_isLogin")=""

Session("lotto_username")=""

Session("lotto_UserLevel")=""

%>

<%Con.Close%>










相关阅读 Windows错误代码大全 Windows错误代码查询激活windows有什么用Mac QQ和Windows QQ聊天记录怎么合并 Mac QQ和Windows QQ聊天记录Windows 10自动更新怎么关闭 如何关闭Windows 10自动更新windows 10 rs4快速预览版17017下载错误问题Win10秋季创意者更新16291更新了什么 win10 16291更新内容windows10秋季创意者更新时间 windows10秋季创意者更新内容kb3150513补丁更新了什么 Windows 10补丁kb3150513是什么

文章评论
发表评论

热门文章 没有查询到任何记录。

最新文章 迅雷新手完全入门手册 asp下面javascript上传图片限制格式大小方法告诉大家网页弹出窗口应用总结ASP常见错误类型大全asp常见错误分析和解决办法

人气排行 总是弹出visual studio 实时调试器 三种解决SQLSERVER存储过程及调用详解Asp获取真实IP地址ASP中连接Mssql的几种方法一个简单好用的UBB编辑器(含代码)如何用Split将字符串转换为数组并获取数组下ASP防止表单重复提交的办法告诉你免费的简单聊天室源代码