CodeIgniter Forums
Noob needs help - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Noob needs help (/thread-53048.html)



Noob needs help - El Forum - 07-09-2012

[eluser]grejsimojs[/eluser]
Hello,

So I am very, very new to CodeIgniter and I'm still a bit confused about it.

I want to create a form, and when the form has been filled out, I'd like the information to be sent into my database!

How exactly do I make this happen?

PS. I've already created a controller and a view file.


Noob needs help - El Forum - 07-09-2012

[eluser]ozy123[/eluser]
The form in the view submits data which can be received and handled by a controller (via the forms action). The controller can then load a model which has a function to write to the database.

If you read this here:

http://ellislab.com/codeigniter/user-guide/helpers/form_helper.html

and this here which gives you an example:

http://ellislab.com/codeigniter/user-guide/tutorial/create_news_items.html

you should get the hang of it. Mind you I'm not quite sure I have the hang of it but my site is working so far! lol