Lostpassword script Error
| From: | techzeus at pacific dot net dot sg | Date: | Wed, 21 Mar 2001 12:29:36 +0000 |
| Subject: | Lostpassword script Error | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-44929@lists.php.net to get a copy of this message | ||
Hi there, I need some help here.
I have uploaded all the files necessary into my server. grab it at
www.frozened.com/zeus/lostpassword.zip
This is a lostpassword script whereby when the user inputs his email address, the script will check
if his email is a valid email ( test@test.com ) after which it will use the database to search for
the email and if there his email is in the db, it will send him a mail telling him so.
In this script I haven't add the mail() but replaced it with a echo() so that I know that the
form has been processed.
When I run the script and input a 'non-valid' email address ( no @ sign ), the errormsg
will appear as normal but when I type a valid email or a email that is in the database, the form
will just clear it self and reappear.
Mind if someone help me debug (I'm new to PHP).
Thanks :)
------------------------
Zeus
------------------------