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="ValidateUser" datasource="taskman">
Select fname FROM Staff WHERE Username='#Form.Username#'
AND Password='#Hash(Form.Password)#'
</cfquery>
<cfif ValidateUser.RecordCount EQ 1>
<cflock timeout="60" throwontimeout="no" type="exclusive" scope="session">
<cfset session.fname= ValidateUser.fname>
</cflock>
<cflocation URL="index.cfm" addtoken="no">
<cfelse>
<cflocation URL="Login.cfm?Message=#UrlEncodedFormat("Invalid Login. Please try again."
#&Username=#Username#" addtoken="no">
</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.
<cfquery name="ValidateUser" datasource="taskman">
Select fname FROM Staff WHERE Username='#Form.Username#'
AND Password='#Hash(Form.Password)#'
</cfquery>
<cfif ValidateUser.RecordCount EQ 1>
<cflock timeout="60" throwontimeout="no" type="exclusive" scope="session">
<cfset session.fname= ValidateUser.fname>
</cflock>
<cflocation URL="index.cfm" addtoken="no">
<cfelse>
<cflocation URL="Login.cfm?Message=#UrlEncodedFormat("Invalid Login. Please try again."

</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.