Jump to content

Recommended Posts

So, I used the script provided at http://phpsense.com/php/php-login-script.html  .

 

After a great big argument with the darn thing, it seems to REFUSE to let me to log in with the account I created, named blah.

 

My table has the following:

 

id - INT - 11 - not null - auto increment - primary key

firstname - VARCHAR - 50 - not null

last name - VARCHAR - 30 - not null

passwd - CHAR - 20 - not null - index

cpassword - VARCHAR - 20 - not null

 

To answer your questions...

 

... yes, I have NO idea what I'm doing, but I learn best from trial, error, and help.

 

So. Whenever I check what the password is, in the database, instead of it being "blah" like it's SUPPOSED to, be, it's a random string of letters and numbers.

 

For the register-exec.php script provided by said third party, there is a query that goes something along the lines of:

 

$qry = "INSERT INTO members(firstname, lastname, login, passwd) VALUES('$fname','$lname','$login','".md5($_POST['password'])."')";

$result = mysql_query($qry);

//Check whether the query was successful or not

if($result) {

header("location: register-success.php");

exit();

}else {

die("Query failed");

}

 

I have NO IDEA what the .md5 thing means, and I don't know if this is what is making the passwords screwy.

 

On another note, I have no idea of the cpassword part of my table, but the script seems to want it there, so, it's there. o.o"

 

Help is appreciated. Thank you.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.