CodeIgniter Forums

Full Version: Noob needs help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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.

El Forum

[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-gui...elper.html

and this here which gives you an example:

http://ellislab.com/codeigniter/user-gui...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