Skip to main content
June 14, 2010
Question

cfdiv is adding a comma

  • June 14, 2010
  • 1 reply
  • 362 views

This is a strange issue... I am using a cfdiv that searches my username table after a potential new user enters a username in order to tell them if its already in use or not.

Almost 100% of the time it works wonderfully and saves people the trouble of submitting the sign up form to find out they took a username that was already used.

However, every once in awhile the cfdiv will attach a comma to the end of the username they typed so it will falsely indicate that the username is available when it really is not.

For example, when it's not working I'll type in "bleg" as my username, and the cfdiv will return "bleg," is available when bleg (without the comma) is in the db and should return "bleg" is not available.

Any ideas?

    This topic has been closed for replies.

    1 reply

    June 14, 2010

    Ok I do believe I found the issue.

    The syntax in my bind statement was <cfdiv bind="url:_file.cfm?username={username} ...

    The new syntax that is not adding a comma is <cfdiv bind="url:_file.cfm?username={theform:username} ...