View Single Post
Join Date: Nov 2007
Posts: 14
Reputation: ViroGen is an unknown quantity at this point 
Solved Threads: 0
ViroGen ViroGen is offline Offline
Newbie Poster

Re: To create a registration page and login page

 
0
  #7
Nov 26th, 2007
I changed the type and still doesn't work.. when I try to login after creating new login, it says "Sorry, could not log you in. Wrong login information."

I will try the other.. Thank you!

Originally Posted by macneato View Post
With the password field. Change the type to varchar(25)

As for requesting passwords.

Yes. It can be done.
Ask the user to enter their email address.
select password from your_db where email_address = 'their_address'
Use the mail() function to send the password to the email address.

SQL:
SELECT
dbusers.password
FROM
dbusers
WHERE
(dbusers.email = 'pforgot')

'pforgot' is any name you've given to the form text input. Will write up a full script as soon as i get time. It's monday morning.. Things are a little hectic.
Reply With Quote