Welcome Guest ( Log In | Register)



2 Pages V  < 1 2  
Reply to this topicStart new topic
> Gahhh This Isn't Going Well Please Help!, It's a forgot password form in php!
chappill
post May 31 2008, 08:34 PM
Post #11


Member [Level 2]
*****

Group: [HOSTED]
Posts: 87
Joined: 21-April 08
From: Errm...this maps dodgey...i think im in the desert...
Member No.: 61,127



Good point lol I have absolutely no idea, a friend recommended
CODE
{ $query="SELECT email,password,username FROM users WHERE password = '$email'";


But i can't see that working either and it didn't!
Go to the top of the page
 
+Quote Post
rvalkass
post Jun 1 2008, 08:30 AM
Post #12


apt-get moo
Group Icon

Group: [MODERATOR]
Posts: 2,238
Joined: 28-May 05
From: Devon, England
Member No.: 7,593
Spam Patrol
myCENT:45.20



QUOTE(chappill @ May 31 2008, 09:34 PM) *
Good point lol I have absolutely no idea, a friend recommended
CODE
{ $query="SELECT email,password,username FROM users WHERE password = '$email'";


But i can't see that working either and it didn't!


You've still got password equal to email...?

Surely that line should either be:
CODE
{ $query="SELECT * FROM users WHERE email = '$email'";


Or:
CODE
{ $query="SELECT * FROM users WHERE password = '$encryptedPassword'";


Identifying users by their password seems somewhat bizarre, so I assume you want the first example - getting a list of people with the email address you want.
Go to the top of the page
 
+Quote Post
tracdoor
post Jun 1 2008, 08:20 PM
Post #13


Member [Level 1]
****

Group: [HOSTED]
Posts: 66
Joined: 2-April 08
From: Berkshire, England
Member No.: 60,270



Why don't you use Mysql query? that would make it a lot easier!

Don't jump in at the deep end trying to make a super secure login script with loads of features, a simple register, login and logout is fine for a first try! from there you can make more adjustments to it later. Also i noticed you don't seem to have a members page yet, what use is a forgotten password script if your visitors have no reason to come back!.

Like I said don't jump in at the deep end, simple Mysql query's are fine! if you do that there's little chance of errors, and the errors that you do get are simple mistakes, ones that a novice could correct easily.
Go to the top of the page
 
+Quote Post

2 Pages V  < 1 2
Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Requesting Php Mailing List Script(3)
  2. Password Strength / User Availablity Scripts ?(2)
  3. Phpbb Password Protector(3)
  4. A Simple Password Page(3)
  5. Registration Form?!(6)


 



- Lo-Fi Version Time is now: 22nd November 2008 - 10:02 PM