compare values

Results 1 to 2 of 2

Thread: compare values

  1. #1
    Join Date
    Dec 1969

    Default compare values

    Hi,<BR><BR>I have 2 variables:<BR><BR>email = session("login")<BR><BR>email2 = request.form("mail")<BR><BR>I want to compare the value of two to see whether they are equal or not.<BR>I am using &#060;%if response.write(email) = response.write(email2) then%&#062;<BR>is there any other way I can compare these two.

  2. #2
    Join Date
    Dec 1969

    Default RE: compare values

    What you&#039;re doing is wrong, probably will always be true, try:<BR>&#060;%<BR>email = session("login") <BR>email2 = request.form("mail") <BR><BR>If email=email2 then<BR> Response.write "emails the same"<BR>End if<BR>%&#062;<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts