Can't Compare Strings

Results 1 to 3 of 3

Thread: Can't Compare Strings

  1. #1
    Team Red Guest

    Default Can't Compare Strings

    var strFormData=Request.Form("formdata");<BR>var strDatabaseData=ors.Fields("databasedata");<BR><BR >if(strFormData == strDatabasedata)...Never Works<BR><BR>I&#039m using ASP, JScript and SQL Server.<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Can't Compare Strings

    if(strFormData == strDatabasedata)<BR>this should be<BR><BR>if(strFormData = strDatabasedata)<BR><BR>equal operator

  3. #3
    dhasza Guest

    Default RE: Can't Compare Strings

    Maybe the database data is fix length and has trailing blanks.<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