Re: Login script login
| From: | Satyam | Date: | Fri, 02 Feb 2007 11:33:30 +0000 |
| Subject: | Re: Login script login | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-248187@lists.php.net to get a copy of this message | ||
----- Original Message ----- From: "Dave Carrera" <dave@ephgroup.com>
Hi All, Having a grey brain moment here and need some advise on the logic of this, should be simple, login script. I am checking validity of customer number customer email customer password (md5 in mysql) So i have my form with relevant fields Now i am getting problems with either sql or how i am handling , and showing, and errors..... I think what i am asking is this If someone just hits the login button show error "All fields must be entered" If customer number dose not excist show relevant error If customer number ok but email not show error If customer number ok but email ok but password is not show errorIn login scripts you usually don't tell which part of the login is wrong, otherwise, you are hinting at what is right. Once the customer is logged in, you are right to be as helpful as possible, but until the customer proves who he/she is, you don't give away anything. Satyam
If all is ok set sessions, got this ok, and proceed. Any help with with this is very much appreciated. Kind Regards Dave C -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php