luckiano Posted February 12, 2010 Share 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 Link to comment Share on other sites More sharing options...
Skemcin Posted February 12, 2010 Share 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? Link to comment Share on other sites More sharing options...
luckiano Posted March 9, 2010 Author Share Posted March 9, 2010 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.