luckiano 0 Report post Posted February 12, 2010 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
Skemcin 13 Report post Posted February 12, 2010 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
luckiano 0 Report post Posted March 9, 2010 (edited) 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 March 9, 2010 by The Rock Share this post Link to post Share on other sites