![]() |
Form Input Idea - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Form Input Idea (/showthread.php?tid=50288) |
Form Input Idea - El Forum - 03-21-2012 [eluser]Unknown[/eluser] Does anyone else think its a good idea to add the same argument to the form_close() function as in the form_open() function for creating hidden input tags? It's not necessary but it would allow a bit more freedom when building forms. So it would look something like form_close ($arguments = "", $hidden = array ()) Just like in the form_open() function. S Form Input Idea - El Forum - 03-21-2012 [eluser]TWP Marketing[/eluser] In terms of code readability I think I prefer the current methods. A form would (should) present the setup and configuration at the beginning of the code segment, rather than separating the open parameters and the hidden parameters. Some form code may be so large as to push the close statement below the visible edge of your editor screen. This acts as an obfuscation of the code. That being said, why do you want to put data in the close statement? |