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

15 04 2011

Part of the ‘Register & Login’ Project from PHP Academy. This tutorials walks you through registering a user to allow them to log in to your site.
Video Rating: 4 / 5

Advertisements

Actions

Information

25 responses

15 04 2011
mineshmandalia

u actualy are the best, ever throught of becoming a lecturer?

15 04 2011
FlamingSwordPro

still cant login D:

it says incorrect password!

15 04 2011
salrathor1

Hey, thanks for making the video.

Mine’s working, it registers a user and says ‘you’re in Click here to enter the member page.’

However, when i click ‘here’ to enter, it says you must be logged in.

tips?

16 04 2011
iamjoseph951

When i use md5($password) it says incorrect password and when i take it off it works but my varchar for password is set for 100 any help?

16 04 2011
tiankrisz

try this:
if(isset($_POST[“submit”]))
{
$fullname = strip_tags($_POST[“fullname”]);
$username = strip_tags($_POST[“username”]);
$password = strip_tags($_POST[“password”]);
$repeatpassword = strip_tags($_POST[“repeatpassword”]);
$date = date(“Y-m-d”);
}

16 04 2011
lyderx02

Always “Notice: Undefined index: submit in C:xampphtdocsxamppclyderegister.php on line 4

Notice: Undefined index: fullname in C:xampphtdocsxamppclyderegister.php on line 6

Notice: Undefined index: username in C:xampphtdocsxamppclyderegister.php on line 7

Notice: Undefined index: password in C:xampphtdocsxamppclyderegister.php on line 8

Notice: Undefined index: repeatpassword in C:xampphtdocsxamppclyderegister.php on line 9” i get in register.php.why..but itis working

16 04 2011
lyderx02

Always “Notice: Undefined index: submit in C:xampphtdocsxamppclyderegister.php on line 4

Notice: Undefined index: fullname in C:xampphtdocsxamppclyderegister.php on line 6

Notice: Undefined index: username in C:xampphtdocsxamppclyderegister.php on line 7

Notice: Undefined index: password in C:xampphtdocsxamppclyderegister.php on line 8

Notice: Undefined index: repeatpassword in C:xampphtdocsxamppclyderegister.php on line 9” i get in register.php.why..but itis working

16 04 2011
raygun369

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!

16 04 2011
snowboardr1016

@FPSRecorder
you most likely forgot to put a ‘;’ after the $connect line

16 04 2011
MattDurden

Is MD5 really safe??
I mean, if an attacker gained access to your database, they can get the md5 hash, use an md5 decrypter or check a rainbow table and recover the password. Unless maybe you used a salted password.

16 04 2011
magikshot

md5 will be good in $_POST

16 04 2011
MrMartinJS

I followed this series of tutorials exactly and until now I’ve had no problems. I have coded the same perfectly but no matter what I always get “Incorrect Password” when I attempted to login with my created account. Anyone else having this problem?

16 04 2011
FPSRecorder

Thanks guys 🙂

16 04 2011
Imbalism

@FPSRecorder
its because you have to use the single ‘ instead of double “.

16 04 2011
supergaybot

@FPSRecorder check above that line of code for things missing like semi-colons and unclosed speech marks 🙂

16 04 2011
mrpotatohead91

wow I’m learning a lot from this than those stupid pdfs I download all the time

16 04 2011
FPSRecorder

I keep getting a ‘unexpected T_STRING’

on this line: mysql_select_db(“phplogin”);

16 04 2011
DonsanUsake569

Why we need a, latin bitch busizz4me.info

16 04 2011
gDoxe

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

16 04 2011
PineAppleMedia2010

Realy Realy Thanks a lot!!! This was an amazing tutorial! And i could easly understand you. (I’m dutch)

16 04 2011
p050017

all done really nice tutorial. do we have any anything in reverse for md5 or we are secure here.

16 04 2011
mustansa

nice tutorials .. thanx a lot for uploading..

16 04 2011
mcckyl01

@phpacademy could you please add a forgot password with an email confirmation on that forgot password

16 04 2011
Robber7

One question, would this I’ve learned be safe to the outside world? (sql injections and stuff like that)

16 04 2011
SkySkraper1212

I followed all of your tutorials up to and including this one and I’ve had no problems yet, great tutorials by the way! but I have now run into a problem. I changed the length of characters in phpmyadmin for the db to 100 and added md5( to the password part in the login. When I sign in it says you’ve logged in successfully, click here to continue to your account. But when I’m on the account page, it says please login to your account. What have I done wrong for that to happen.




%d bloggers like this: