Jump to content

enfys

Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

enfys's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Yes, see what you mean! Will have a play around with it. Thanks for your help.
  2. When they login in. At the moment my code reads: if ($_POST['user'] != $user || $_POST['password'] != $pw) { echo "Inncorrect user name or password"; } else { //run rest of code here...
  3. But how do you md5 the user's password when they type it in?
  4. When the users are added the Insert statement for mysql adds the password as password('$_POST[password]') which I think encrypts it. To veryfy I'm calling the password as part of an array, assigning it to a variable ($password) and then trying to verify by; if ($_POST['password'] == $password) { //run code }
  5. I have started using the passsword() function to protect passwords but dont' know how to hash the passwords that a user inputs into the form for comparison. Anybody help?
×
×
  • 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.