Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

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

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
79,609
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Feb 20, 2009

Part of the 'Register & Login' Project from phpacademy. This tutorials walks you through registering a user to allow them to log in to your site.

Official website
http://phpacademy.org

Support Forum
http://phpacademy.org/forum

Follow us on Twitter!
http://twitter.com/phpacademy

  • likes, 15 dislikes

Link to this comment:

Share to:

Top Comments

  • @trinitymet777 Put THIS!

    $fullname = strip_tags(@$_POST['fullname']­);

    $username = strip_tags(@$_POST['username']­);

    $password = strip_tags(@$_POST['password']­);

    $password1 = strip_tags(@$_POST['password1'­]);

    $date = date("Y-m-d");

    THUMBS UP TO ALL CAN SEE! :)

  • i did everything right but when i insert data and click on register it process alright. but nothing transferred into my database. it add's one raw and my details are not in it. error message

    Notice: Undefined index: submit / fullname/ username / password/ repeatpassword. plz advise.

see all

All Comments (322)

Sign In or Sign Up now to post a comment!
  • @sovietagressor1 Looks like no one agrees with you. You're too stupid to understand... I won't even waste my time on a tool like you

  • Hey I am having a bit of trouble. When I enter all the information into my registration form, I get no errors and it says success, but when I check my database it's empty. Hopefully you can help.

  • @rosswilliamson85 I already learned the code my way. You're so stupid that you don't realize that by following this tutorial, you're COPYING the guy's code. Such a retard..

  • Thanks a lot !

  • thanx fr the tutorial, helped a lot/ had difficulty inserting data into database/ if u experience the same problem, here is how i solved it

    INSERT INTO users VALUES('null', '$name', '$username', '$password');

  • @smokenfly514 ur an idiot your supossed to learn nt copy his code

  • Why does everyone think that putting the @ sign in front of something stops the error from happening , IT ONLY HIDES THE ERROR MESSAGE!

  • The password issue is because he's md5'ing the passwords before he checks them. Compare first, then md5 just the password variable you are going to write to the db. If you can't follow at least to an extent and understand if's and programming sequence of events, this whole series is probably too far over your head to really gain anything :O

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