CodeIgniter Registration Form Part 2
Uploader Comments (Verbloten)
All Comments (16)
-
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!
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 5 months ago
@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/register.
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?
Verbloten 5 months ago
I really like your tutorials, but smacking drives me crazy.....
LimitedWings 7 months ago
@LimitedWings smacking? what do you mean?
Verbloten 7 months ago
Excellent. Thanks. Very helpful!
Mike01010011 1 year ago
@Mike01010011 Thanks!
Verbloten 1 year ago