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

CodeIgniter Registration Form Part 2

Loading...

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

Uploaded by on Jun 30, 2009

This is Part 2 of what will probably end up as at least 3 parts on creating a User Registration form in CodeIgniter. It shows CodeIgniter features such as form validation, form helpers etc.

CodeIgniter can be found at http://www.codeigniter.com

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

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (Verbloten)

  • Nice tutorials man! So far I believe I have done everything just like you, but when I try to submit to check if the validator works, I get redirected to 404 - The requested URL /tutorial/user/register/ was not found on this server.

  • @M4S4HIRO Sounds like you didn't get rid of index.php perhaps? What is the URL of the register page that shows the form? /tutorial/user/register I would guess not.... so you could remove index.php or change the URL for the form POST to /tutorial/index.php/user/regis­ter.

    If that's not the problem and the problem is that your URL is literally "/tutorial/user/register" then in the form open line make sure you put base_url() . '/tutorial/user/register'....

    Hopefully something here helped?

  • I really like your tutorials, but smacking drives me crazy.....

  • @LimitedWings smacking? what do you mean?

  • Excellent. Thanks. Very helpful!

  • @Mike01010011 Thanks!

see all

All Comments (16)

Sign In or Sign Up now to post a comment!
  • Can somebody help me?

    I've entered the code as shown (changed to parent::controller() to parent::__construct()

    Now, the registration page loaded fine, but when I click submit (register) button, I get the error message "object not found". What am I doing wrong?

  • @Verbloten Changing the URL for the form to tutorial/index.php/user/regis­­ter did the trick. Thank you!

  • @Verbloten English is not my native language, so I looked in a dictionary... That thing with tongue and teeth.

  • Sir i have questions?? What is the difference if you are not using a codeigniter framework?

    What is the purpose if you are using codeigniter framework

    Can affect my code if im not using any PHP framework..

    Thnx in advance..

  • Just to help people that were stuck where I was. ..

    This didn't work for me until I dropped the $base_url inside the form_open() function, as I had a base URL set in my config file already. Per the CI documentation, form_open "Creates an opening form tag with a base URL built from your config preferences", so entering it again for me was redundant.

    It worked once I wrote it like this: echo form_open('user/register');

    Thanks for the tutorials. I'm learning so much!

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