<cfif not logon.recordcount> <script type="text/javascript" language="JavaScript"> alert("In-Valid Login Message"); </script> <cfinclude template= "display_login_page.cfm"> </cfif>
hth Elena Charlie Hanlon Web Apps Developer Food Service Enablers, Inc. www.fsenablers.com The People. The Platform. The Products. Make the Difference ----- Original Message ----- From: "Aminova, Elena" <[EMAIL PROTECTED]> To: "CF-Talk" <cf-talk@houseoffusion.com> Sent: Monday, October 24, 2005 5:20 PM Subject: CF/JavaScript help on signup > Please advise what I can do in Cold Fusion, perhaps using JavaScript? > I have a login page and on it, I need when the user enters wrong > username and/or password which don't match up in the DB, I need to pop > up or display a user friendly message that the entry does not match up, > doesn't matter what the message is. Right now I just do this in the > login processing page: > > <cfif not logon.recordcount>(logon is the query that checks the DB if > there are any records with the form inputed username and password) > <!--- Need to display or Pop up a message that the users username and > password dont match/ are not correct ---> > <cfinclude template= "display_login_page.cfm"> > <cfabort> > > PLEASE HELP!!! > > Thanks. > > Elena > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222124 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54