| |
koolraj
Posts: 1
Score: 0
Joined: 5/25/2005
From:
Status: offline
|
Hai, following is my code in asp using vb dim name1 dim name2 while not rs1.EOF name1 = Request.Form("T2") name2 = Request.Form("T4") Response.Write(rs1(3) & " " & rs1(5) & " " & Request.Form("T2") & " " & Request.Form("T4") &" " & name1 & " " & name2 & "<BR>") //This part of code is not working, its not comparing them in IF condition// if(rs1(3) = Request.Form("T2") AND rs1(5) = Request.Form("T4") ) then comm1.CommandText = "UPDATE Refferal SET Date_Reffered = GetDate() WHERE Refferrer_name='"&Request.Form("T1")&"' AND Refferered_name ='"&Request.Form("T3")&"'" comm1.Execute found = "True" Response.Write "I am here inside" end if rs1.MoveNext wend How can i compare the value of recordset field to a request.form value, as u can see the i tried to display, its all showing me the same value but, its not comparing help me
|
|