Problem with Form and form tags built with CodeIgniter.. URGENT assistance required - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: Problem with Form and form tags built with CodeIgniter.. URGENT assistance required (/showthread.php?tid=57020) |
Problem with Form and form tags built with CodeIgniter.. URGENT assistance required - El Forum - 02-07-2013 [eluser]Unknown[/eluser] Hi All, I am having trouble to work with forms created using codeigniter. I have tried number of ways to render a form on the webpage. But am unsuccessful at different points. 1. I tried to render a form with code: Code: <?php 2. I have also tried to completely render it using options given in form helper class like Code: <?php echo form_open('registerUsr'); 3. I have tried hybrid variety using mix of html tags and helper class functions. But in all the ways, on final render of the form on web page <form class="form1"> and </form> tags are missing And also instead of index.php/registerUsr, it is going into index.php/searchUniv page. (Checked routes.php. It is correctly pointed) Any suggestions / ideas appreciated TIA :-) Ashok Problem with Form and form tags built with CodeIgniter.. URGENT assistance required - El Forum - 02-07-2013 [eluser]CroNiX[/eluser] The attributes array must be key/value pairs like the user guide shows for form_open() in the "Adding Attributes" section. Also, you are missing an echo for form_open(). You have it for form_close(). You should also load the form helper in the controller, not the view. Your form should submit to a controller/method, not just a controller like it currently is. |