For some reason, I keep getting a syntax error on this login. Application.cfm: <!--- Page: Application.cfm ---> <CFAPPLICATION NAME="ResDBApp" CLIENTMANAGEMENT="Yes" SESSIONMANAGEMENT="Yes" SETCLIENTCOOKIES="Yes" SESSIONTIMEOUT="#CreateTimeSpan(0,1,0,0)#" APPLICATIONTIMEOUT="#CreateTimeSpan(1,0,0,0)#" CLIENTSTORAGE="COOKIE"> <!--- Next check to see if the login form has been submitted, if yes then try to authenticate the user. ---> <CFIF IsDefined("form.username")> <cfquery name="getUsers" datasource="resDB"> Select * from USERS Where UserID = '#form.UserName#' </cfquery> <cfif getUsers.recordCount EQ 0> <cfset IsAuthenticated = FALSE> There is no user by that name.<br> <a href="mailto:[EMAIL PROTECTED]">Get help</a> <cfelseif form.Password = "getUsers.Password" AND form.UserName = getUsers.UserID> <cfset IsAuthenticated = TRUE> <cfelse> <cfset IsAuthenticated = FALSE> Sorry, your password does not match.<br> <a href="mailto:[EMAIL PROTECTED]">Get help</a> </cfif> </CFIF> <cfif IsAuthenticated IS FALSE> <cflocation url="login.cfm"> </cfif> Here's my login form. <FORM NAME="loginForm" ACTION="" METHOD="post">
<span class="ltBlueHead">UserName:</span> <INPUT TYPE="text" NAME="username" SIZE="20"> <br> <span class="ltBlueHead">Password:</span> <INPUT TYPE="password" NAME="password" SIZE="20"> <INPUT TYPE="submit" VALUE="Log in..."> </FORM> <!--- If the login form is called then stop processing the page after the user is presented with the login form. ---> <CFABORT> </p> </form> And the error: Error Occurred While Processing Request Context validation error for tag cfif. The start tag must have a matching end tag. An explicit end tag can be provided by adding </cfif>. If the body of the tag is empty you can use the shortcut <cfif .../>. The Error Occurred in C:\Inetpub\wwwroot\apps\resDB\admin\Application.cfm: line 38 36 : </cfquery> 37 : 38 : <cfif getUsers.recordCount EQ 0> 39 : <cfset IsAuthenticated = FALSE> 40 : There is no user by that name.<br> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4