CodeIgniter Forums
$this->input->get() and form_dropdown() combination => bug - 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: $this->input->get() and form_dropdown() combination => bug (/thread-47631.html)



$this->input->get() and form_dropdown() combination => bug - El Forum - 12-15-2011

[eluser]teomor[/eluser]
$this->input->get() returns FALSE whenever a variable (key) is not set in the $_GET array.
So when this value is fed to form_dropdown, it actually selects the option with a value of 0 instead of the option with a value of '', which is WRONG! Right?