Jump to content
luckiano

Please Help With A Login Program! Anyone

Recommended Posts

hi everyone, i thought coldfusion was simple but i'm beginning to feel otherwise. i've been trying to work on a login program that will login the user and also display the users information from a database on the actions page based entered on the form of the calling page by the user, i know these have to do with cookies, session management and so on, but i do not know how to start, please any suggestion will be highly appreciated. thanks in advance

Share this post


Link to post
Share on other sites

I'll be happy to help you and for starters can you let me know what you've tried so far? Do you have an Application.cfc or Application.cfm file defined and then several others that are intended to function as you've described above? Is your request for help more in theory or in the code?

Share this post


Link to post
Share on other sites

thanks Skemcin for the kind questure. i appreciate, but i have a login page that look like this<cfform name="login" action="info.cfm" method="post"><cfinput type="text" name="username"><cfinput type="password" name="password"><cfinput type="submit" name="submit"></cfform>and info.cfm page looks like this<cfquery name="Getinfo" datasource="mydsn"> SELECT UserName, password, Cpa, Mic, Cor, Pri FROM info WHERE UserName = <cfqueryparam value="#Form.UserName#" CFSQLType="CF_SQL_VARCHAR"> AND Password = <cfqueryparam value="#Form.password#" CFSQLType="CF_SQL_VARCHAR"> </cfquery><cfoutput query="Getinfo">#username# <br />#cpa#</cfoutput>basically what happens is that the login form collect data from user and display records on the info page based on the data.what happen is that when data entered is not found in the database, the info page will be blank. so what i want is to be able to display the records when the username and password exist and an error message when the data entered does not exist. i hope i'm making sense here. tried i explain the best way i could. thanks in advance.

Edited by The Rock

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×