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

PHP Tutorials: Login/Register Email Activation (Part 2)

Loading...

Sign in or sign up now!
19,604
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Aug 22, 2009

Visit the forum for help!
http://phpacademy.info/forum

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

Make users activate their user account by email before they log in using your register/login process

  • likes, 2 dislikes

Link to this comment:

Share to:

Top Comments

  • in activate.php

    the $code variable should also be filtered with addslashes() for security.

  • I keep getting incorrect password even tho i write it well , i think because i encrypted the password, i encrypted them in index.php and register.php and still get incorrect password when i dont encrypt them the password works what can i do help pls?

see all

All Comments (40)

Sign In or Sign Up now to post a comment!
  • I guess that making the field so wide it's unlikely that the rand generator will come up with the same number twice. However why take the chance and not just use an auto incrementing integer instead?

  • @skopilianos You need a mail-sending server. Try downloading postcastserver. Search "php mail function" for more help over youtube. :)

  • Guys I'm getting this error

    Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\register_handl­er.php on line 72

    We could not sign you up at this time. Please try again later

    How do I fix this! I'm not experienced with php but I'm getting there.

    Any help would be amazing!!!!

  • Thanks for tip, just notice that the code can (very small chance) be the same for (at least) two user since its generated by rand().

  • Can you please upload the code and set the link in the description?

  • omg i want a login in FLASH! not on a crap website!

  • use => $login_row = mysql_fetch_assoc($login) instead of the while loop because you only fetch data from one row

  • for this moment until the end of the times im going to follow u *-*

Loading...

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