Hi again,
I have a basic login page and login action page based on data in an Access db. It works perfect, but now I want to add another component. I want add another column to my db. The user would then go to a particular page based on what is in the db column. Now the question, How do i incorporate that into my existing code?
login action page
<cfquery name="logincheck" datasource="underwriting">
select * from login
where Username='#form.Username#'
and Password='#form.Password#'
</cfquery>
<cfif #LoginCheck.recordcount# is "0">
<cflocation url="login.cfm">
<cfelse>
<cflocation url="aunder.cfm">
</cfif>
I have a basic login page and login action page based on data in an Access db. It works perfect, but now I want to add another component. I want add another column to my db. The user would then go to a particular page based on what is in the db column. Now the question, How do i incorporate that into my existing code?
login action page
<cfquery name="logincheck" datasource="underwriting">
select * from login
where Username='#form.Username#'
and Password='#form.Password#'
</cfquery>
<cfif #LoginCheck.recordcount# is "0">
<cflocation url="login.cfm">
<cfelse>
<cflocation url="aunder.cfm">
</cfif>