CodeIgniter Forums
A little help with my first app... - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: A little help with my first app... (/showthread.php?tid=27718)

Pages: 1 2


A little help with my first app... - El Forum - 02-22-2010

[eluser]n0xie[/eluser]
Yeah you would have to change your delete link to a delete form. (you can also fix it using javascript but that's a bit out of the scope of your question). In the form you would set the method to POST and usually add an hidden input field with the id in it. In your controller you would grab your hidden id value and use that as parameter for your model, instead of the id passed via the URL.


A little help with my first app... - El Forum - 02-22-2010

[eluser]invision[/eluser]
Many thanks again n0xie.

I'm going to take a bit of time to look over where I am with the code right now. I *may* come back with a query over form validation/sending errors to the user, and my update function.


Thanks again for all your help