Re: Need help with login script...

2003-03-23 Thread Dave Carabetta
> Why would I not use cfabort there? > When is a good time to use cfabort? > It seems like the "exit sub" function in VB. Am I mistaken? You don't need cfabort with a cflocation because when you use cflocation, the page that is currently executing stops because of the page redirect. You've effecti

Re: Need help with login script...

2003-03-23 Thread Candace Cottrell
Thanks Dave, I think I see what I did wrong. The addtoken attribute needed to be specified to prevent Cold Fusion from automatically appending #URLToken# to URLs. Why would I not use cfabort there? When is a good time to use cfabort? It seems like the "exit sub" function in VB. Am I mistaken? I

Re: Need help with login script...

2003-03-23 Thread Dave Carabetta
> I am now having trouble with the condition of if the correctLogin > variable is false or undefined or if the form.userName is undefined. I > get either a loop (when I dont have the in there) or a timeout > (when I take those out. Based on what you pasted in, I re-worked the login code a little

Re: Need help with login script...

2003-03-22 Thread Candace Cottrell
Thanks Dave... I implemented the changes. I need all the help I can get (LOL) I am now having trouble with the condition of if the correctLogin variable is false or undefined or if the form.userName is undefined. I get either a loop (when I dont have the in there) or a timeout (when I take those

RE: Need help with login script...

2003-03-22 Thread Candace Cottrell
Thanks Ben, suprised to get such a quick response on a Saturday evening.. with Trading Spaces being on and all ;) I'll heed your suggestions :) Candace K. Cottrell, Web Developer The Children's Medical Center One Children's Plaza Dayton, OH 45404 937-641-4293 http://www.childrensdayton.org

RE: Need help with login script...

2003-03-22 Thread Candace Cottrell
Thanks Ben, suprised to get such a quick response on a Saturday evening.. with Trading Spaces being on and all ;) I'll heed your suggestions :) Candace K. Cottrell, Web Developer The Children's Medical Center One Children's Plaza Dayton, OH 45404 937-641-4293 http://www.childrensdayton.org

Re: Need help with login script...

2003-03-22 Thread Dave Carabetta
> > > >Select * from USERS Where >UserID = '#form.UserName#' > > > > > There is no user by that name. > mailto:[EMAIL PROTECTED]">Get help > >getUsers.UserID> > > > > Sorry, your password does not match. > mailto:[EMAIL PROTECTED]">Get help >

RE: Need help with login script...

2003-03-22 Thread Ben Doom
My guess is that it's the equals signs in your elsif that are causing it. If it were me, I would use the same error message for bad username and bad password. This is a standard security thing. Assume I'm trying to break in. With your system, I try usernames until one works (but says bad passwo