CodeIgniter Forums
$this->input->post() function not working in model for one instance but others its ok? - 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: $this->input->post() function not working in model for one instance but others its ok? (/showthread.php?tid=43280)

Pages: 1 2


$this->input->post() function not working in model for one instance but others its ok? - El Forum - 07-06-2011

[eluser]Mirge[/eluser]
[quote author="Armchair Samurai" date="1309988475"][quote author="ccschmitz" date="1309983702"]Yeah, set_value doesn't work with dropdowns. [/quote]

Actually, set_value() works perfectly fine with form_dropdown().[/quote]

+1, it works fine.


$this->input->post() function not working in model for one instance but others its ok? - El Forum - 07-06-2011

[eluser]ccschmitz[/eluser]
[quote author="Mirge" date="1309999668"][quote author="Armchair Samurai" date="1309988475"][quote author="ccschmitz" date="1309983702"]Yeah, set_value doesn't work with dropdowns. [/quote]

Actually, set_value() works perfectly fine with form_dropdown().[/quote]

+1, it works fine.[/quote]

Ahh, my bad. I was just going off of what I read in the documentation:

Quote:Permits you to set the value of an input form or textarea.

I didn't actually test it. Sorry about the misinformation.


$this->input->post() function not working in model for one instance but others its ok? - El Forum - 07-06-2011

[eluser]Mirge[/eluser]
[quote author="ccschmitz" date="1310004908"][quote author="Mirge" date="1309999668"][quote author="Armchair Samurai" date="1309988475"][quote author="ccschmitz" date="1309983702"]Yeah, set_value doesn't work with dropdowns. [/quote]

Actually, set_value() works perfectly fine with form_dropdown().[/quote]

+1, it works fine.[/quote]

Ahh, my bad. I was just going off of what I read in the documentation:

Quote:Permits you to set the value of an input form or textarea.

I didn't actually test it. Sorry about the misinformation.[/quote]

Yeah, documentation says it's specifically for text/textarea... but it does work for selects too Smile I actually had been using it for drop-downs before I saw that in the documentation, which threw me off guard for a bit.