Added: 3 years ago
From: phpacademy
Views: 19,155
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (40)

Sign In or Sign Up now to post a comment!
  • Thank you, Alex !

  • GOSH SO MUCH FOR TWO TUT'S.

    but actually these are from 09, you should do some updates, like forgot password, and maybe some security updates.

  • Super Like!!! Super helpful.!!!

  • Comment removed

  • thank you!! this was easy to understand,

  • Thanks a lot!

  • thank you!! this was easy to understand, and you taught it very good.

  • Thank you sooooo much!! <3

  • You're awesome! You make it seem so simple. Thank you sooo much!

  • THANK YOU SO MUCH

  • how can i uppload it to the web with the "db"?

  • IDK if it was put in the video or not, but when you edit the changepass.php and put in the md5 stuff, go into your login.php and do this:

    $password = md5($_POST['password']);

    Because... $password = $_POST['password']; will echo the incorrect password error. If the md5 value is in the database.

  • Your fucking awesome i love your channel;)

    but can you please make a video how to edit profile?

  • @sukkejens Like what? You now know how to change data stored in your database, so that covers a lot of profile editing. phpacademy also has a profile on uploading pictures to the database.

  • like it !: eliminate first the two md5 from newpassword $_post

    //check passwords if($oldcontrasena==$oldcontras­enadb) { //newpassword must be between 6 and 25 characters if(strlen($newpassword)>25||st­rlen($newpassword)<6) { echo ("the new password must be between 6 and 25 characters"); } else { //encrypt newcontrasena $newpassword = md5($newpassword); //check two new passwords if($newpassword==md5($repeatne­wpassword)) { //success

  • @sayaro thanx alot man, had a lil issues still but this was a major help n guide

  • @sayaro - it can't work, cus you are comparing the $oldpassword with the password in the database. The old password has to be encrypted 1st and then compared to the $oldpassworddb.

  • I think the way to probe the new password is over 25 and under 6 is doing it, make an "if" over //check two new passwords and put the check to new password inside " an else" write the strlen code like in registration page. Oh! and elimnate the md5 fomr the begining and make an md5 after checking strlen. I hope you understand my english.

  • *Revisa si te falta o si agregastes mal un ; en todo el codigo.

  • Revisa si no te falta o si agregastes mal un ; en alguna otra parte del codigo.

  • I have a problem at line 12 I did everything like in tutorial

    Parse error: syntax error, unexpected ';' in /members/changepassword.php on line 12

    and this line 12 in my editor :

    // check felds $oldpassword = md5 ($_POST['oldpassword']);

    ?????

  • i can change my username too right?

  • if you want to add string length you'll need to add it exactly like you did with the register.php page except obviously you'll change the variables from $password to $newpassword and from $repeatpassword to $repeatnewpassword. You don't encrypt the password in the "//check fields" section, instead you encrypt them in the "//encrypt password" section in the else statement below the if($newpassword==$repeatnewpas­sword) statement.

  • i think you speak wery well and i loved this tutorial.

    thanks.

  • can anybody help??!! As Alex menitoned at the end, when the user changes to a new password of less than 6 digits how can i limit that?? i tried to make an if statement with the "strlen" but the problem is that the password is already in MD5 encription and as like 30 digits or so.

    PLEASE HELP! thanks

  • @dennis3380

    i know how to do it but i am not so good in english and its complicated... If you got Skype Please add me: fredzy11

    and il can help you from there ;)

  • Aww ALEX Thank you veryyyyyyyyyyyyyyy muchhhhhhhhhhhhhhhhhhhh

  • what i did with this.. is made an Administrator only page.. using his tutorials =) and then made it so that the admins can change a users password by typing hte ID of the user and a new password..

    Just have to change "SELECT password FROM users WHERE username='$user'"

    to "SELECT password FROM users WHERE id='$id'"

    and the id is equal to a post of the id ( $id = $_POST['id']; )

  • @digesteddonkey

    also you have to change

    "UPDATE users SET password='$password' WHERE id='$id'" hte SET query.

  • hI Alex

    That is really great tutorial.

    Could you please add the min lengh function for newpassword?

  • Thank you very much Alex!

  • i have a problem i got a comment page and a user has to login to post, that all works. now when a user logs in and comments on the page it adds then if another user logs in and comments, the other users comment shows up as the second users login and the comment that he sent.

    user 1 "hitzy, Hello!"

    user 2 " hitzy, helllo!"

    this example shows who ever logs in their name comes, so i was wondering if you can help me figure out this problem please urgently required, thanks!!!!

  • i didn't understand about that md5 hash code in part 2. i keep on having problems about that. could you explain it more clearer? can somebody help?

  • thank you.........

  • thanks again! all your videos is great and makes me learn more than I've ever done at tutorials by text or videos at internet! really great!

  • Superb ,Fantastic ,Mind blowing, outstanding

  • Your tutorials of php are the best in the internet. Thanks for the videos.

  • indeed, I have very much enjoyed this tutorial Alex...Thanks A lot! Please keep on teaching!

  • Awesome. Thanks

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more