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

CodeIgniter Registration Form Part 7

Loading...

Sign in or sign up now!
7,383
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Oct 13, 2009

This is a direct continuation of Part 6 - here we complete the user registration process by creating the controller function responsible for checking the activation code and activating the new user.

Please leave me comments if you like the tutes - if you want more on a certain subject etc set me a challenge! I'd be happy to do the tutorial for you.

More CodeIgniter tutorials, all in one place, at http://www.simplycodeigniter.com.

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (Verbloten)

  • Hello, excuse me. In order for this to work, do I have to modify the php.ini file? I'm not really that knowledgeable about mail servers and all that stuff. Thanks!

  • @mport9491 Hi... Yes.. In php.ini search for

    [mail function]

    Set your SMTP server to your ISP's SMTP server...

    For example

    [mail function]

    ; For Win32 only.

    SMTP = mail.bigpond.com

    smtp_port = 25

    That's what my settings look like as I am with Bigpond in Australia.

    

  • no probs! Hey anyone ever wanna chat about CI just hit me up on twitter - @alboydweb

    Best of luck!

  • Nice, I think it'll be a lot of use for my community project :)

  • @Apronouva Sorry I replied the wrong way! See my other comment! ahha

  • Not related to CI, but shouldn't the activation code be cleared when the user activates ? Because of only 10 (well, 11) string length, the probability of 2+ identical activation codes appearing when there are a lot of users is not to be neglected.

    Also, after you select the id from the database to ensure there is a user with that activation code, I think you wanted to use `user_id` in the where clause instead of `activation_code`.

    Anyway, nice videos! Thanks for making and uploading them!

  • @Winnetou17 It doesn't really matter in that case what you use. I'm no pro so I'm not sure - but perhaps it would be marginally faster to use user_id particularly when there are 100,000 users... We only update the confirmed field if it finds the user_id by registration code.. if it does then we can use the user_id or the registration code to update confirmed.. technically it would probably be better practise to use the user_id. Thanks for your comments!

see all

All Comments (15)

Sign In or Sign Up now to post a comment!
  • Your videos are AWESOME! I learned Codeigniter thanks to you! Thanks! And I love how you record it as you do the video, not just show completed code and explain it afterwards. Helps so much at getting the hang of what's going on as it's happening.

  • Hey dear, nice tutorial...

  • Thank you very much for these tutorials

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