Hi All,
I'm trying to force a unique username during a web sign-up. Needless to say, it isn't working. Here's what I tried:
<!-- content starts here -->
<CFQUERY NAME="getemail" DATASOURCE="productlocator">
SELECT *
FROM admin
</CFQUERY>
<!--- make user username is unique --->
<cfoutput><cfif #getemail.username# CONTAINS #Form.username#>
<div class="maintext">Please go back and try a different username.<br>
The username "#Form.Username#" is already in use.</div>
<cfabort>
</cfif></cfoutput>
I'm trying to force a unique username during a web sign-up. Needless to say, it isn't working. Here's what I tried:
<!-- content starts here -->
<CFQUERY NAME="getemail" DATASOURCE="productlocator">
SELECT *
FROM admin
</CFQUERY>
<!--- make user username is unique --->
<cfoutput><cfif #getemail.username# CONTAINS #Form.username#>
<div class="maintext">Please go back and try a different username.<br>
The username "#Form.Username#" is already in use.</div>
<cfabort>
</cfif></cfoutput>