PHP Tutorials: Register & Login: User registration (Part 5)

preview_player
Показать описание

Official site

Twitter
Рекомендации по теме
Комментарии
Автор

2015 and your work is amazing, I have learnt more from you than going to lectures, You are a legend.

KrishneelKumar
Автор

Have been looking for this for the last one year! Thumbs up if you agree with me!

digitalgamsawala
Автор

alex, I like how you sometimes make common mistakes that most of us will also make, it just helps the learning a lot when I am making mistakes and solving them. THANK YOU!

raygun
Автор

Dear Alex, this is the first tutorial that you have made that I have tried my hardest not to exactly duplicate, but to add my own little coding style to it. This tutorial has been AMAZING to help me remember things like semi colons to terminate and just learn altogether, I would recommend anyone in an intermediate level looking to polish up some skills to this tutorial, I love you, =P

iAgentDrizzy
Автор

Thanks a lot. I learned some really useful things from the registration tutorial such as keeping the form fields filled in, making sure the password field in the DB can accomodate the password hash, and submitting a form to the same page. Great stuff.

fugazi
Автор

Thank you SO much for this tutorial! I am a total PHP N00B and I understood everything.

datrizz
Автор

Your tutorials are very helpful and informative, but I am a php rookie and sometimes it's hard to keep up. I am having trouble with some errors here and there but your acknowledgment of your own mistakes and encouragement to seek through the code for mine has made me feel like I am just making common trip ups like anyone else.

Thanks for a great tutorial, I will definitely be back for more!

~Komrade Vlad

KomradeVlad
Автор

thanks to your tutorials i was able to complete an assignment for university pretty quickly... thanks for that, you rock! :) keep it going!

mudsr
Автор

echo "Alex:
Great work, you come to the level of user and then explain every thing absolutely beautiful";

sabexel
Автор

Couple of things, these may be covered in future videos, but wanted to mention here just in case. 1. a password reset function by email, 2. logging into different (personalized) pages depending on user and 3. which I thought should have been mentioned is when someone new registers, there is nothing checking on whether or not a username already exists.
But I will subscribe and keep on these videos and check out other videos to see if I can find these. But very good videos Thanks.

markyj
Автор

Great tutorials, man! Please, keep publishing new ones. Thanks for sharing.

MarceloChiarella
Автор

you are my php hero...thanks mate.your tutorials are very clear..most likely think is the way your are solving errors. its is very help full for me...thanks you very much

prageethpasyala
Автор

Had to put this in the login.php file

session_start();
$username = $_POST['username'];
$password = $_POST['password'];

$password = md5($password);

the bottom value to be specific. The md5 was not working until I made this change. It was driving me crazy. Now it works.

VinnieVincent
Автор

I'm still learning php (through these tutorials of course :P) but i think this may work but i may be completely wrong.

You could create a form where user enters his email address

query the database and see if this email address exists with mysql_num_rows

if it exists (does not equal 0 or equals 0)

update the database with a random password (i believe there's a php function which generates random strings)

Then email this code to the user and incorporate the tutorial on password changing.

sgddfgfghfgh
Автор

These are great! Thanks!! I've been looking around for a great example like this.

sticksiscool
Автор

The field length in the db was the bug. Very tricky. Good to know. Thanks

nattsurfaren
Автор

Anything encrypted with md5 will ALWAYS a length of 32 characters!
Always good to know =)

gDoxe
Автор

Hey man i love you... finally something that really works... congratulations...

felipemcsk
Автор

Thank you VEEEERRYYYY much! the will make my assignment a great deal easyer!!!

mandudehahaha
Автор

US-CERT now says that MD5 "should be considered cryptographically broken and unsuitable for further use." You should you SHA 256, SHA512 or bcrypt which relies on Eksblowfish much safer than md5.

SeanPannella