Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

New problem with CF and user validation file

Status
Not open for further replies.

ironyx

Technical User
Joined
Nov 13, 2001
Messages
134
Location
US
I have a user logine file which redirects to a validate CFM page. This then redirects them again or prompts them to log in again. Now, the user login page does fine until it tries to validate and then it won't seem to carry over the variables or my cf won't run. It says that I can't use "form.Username" because it doesn't exist but the user login page has the form that it should draw that info from.
<cfquery name=&quot;ValidateUser&quot; datasource=&quot;taskman&quot;>
Select fname FROM Staff WHERE Username='#Form.Username#'
AND Password='#Hash(Form.Password)#'
</cfquery>

<cfif ValidateUser.RecordCount EQ 1>

<cflock timeout=&quot;60&quot; throwontimeout=&quot;no&quot; type=&quot;exclusive&quot; scope=&quot;session&quot;>

<cfset session.fname= ValidateUser.fname>

</cflock>

<cflocation URL=&quot;index.cfm&quot; addtoken=&quot;no&quot;>

<cfelse>
<cflocation URL=&quot;Login.cfm?Message=#UrlEncodedFormat(&quot;Invalid Login. Please try again.&quot;)#&Username=#Username#&quot; addtoken=&quot;no&quot;>
</cfif>
I can't figure it out. Is it possible that the browser view is having trouble parsing my pages? All of the servers are on one machine which I hook to locally. I see in the CF admin log files that it won't recognize the form.Username
*sigh*
thanks!!!
Va.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top