%@ Language=VBScript %> <%response.buffer= True%> <%' set con=server.CreateObject("ADODB.Connection") 'if request.cookies("username")="" then 'Set rst=server.CreateObject("Adodb.Recordset") 'con.Open "user","gempulse","kgjgbi7890" 'sql="Select * from usertable where username='"&request.form("username")&"'" 'rst.open sql,con,3,1,1 'rs=rst.recordcount 'if rs=0 then 'found=0 'else 'found=1 'end if 'if found=0 then 'response.cookies("username")="" 'else ' if request.cookies("username")="" then ' Response.Cookies("username")=Request.Form("username") ' Response.Cookies("password")=Request.Form("password") ' a=request.cookies("username") ' b=request.cookies("password") ' else ' a=request.cookies("username") ' b=request.cookies("password") ' end if 'end if 'rst.close 'else ' Set rst=server.CreateObject("Adodb.Recordset") ' con.Open "user","gempulse","kgjgbi7890" ' sql="Select * from usertable where username='"&request.cookies("username")&"'" ' rst.open sql,con,3,1,1 ' rs=rst.recordcount ' if rs=0 then ' found=0 ' else ' found=1 ' end if ' if found=0 then ' response.cookies("username")="" ' else ' if request.cookies("username")="" then ' Response.Cookies("username")=Request.Form("username") ' Response.Cookies("password")=Request.Form("password") ' a=request.cookies("username") ' b=request.cookies("password") ' else ' a=request.cookies("username") ' b=request.cookies("password") ' end if 'end if 'rst.close 'end if 'con.close %>
![]() |
||||||||
|
Welcome <%'=a%> |
|
|||||||
| ©Gempulse Infotech Pvt. Ltd. |