2 form error - 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: 2 form error (/showthread.php?tid=12185) |
2 form error - El Forum - 10-09-2008 [eluser]Yash[/eluser] When I try to load 2 form on page ..one's < form > get truncated. 2 form on same view coming from 2 different views. Code: <?php View Selection Source [mozilla] Code: <p> </p> <input name="blog_search" id="blog_search" type="text"> 2 form error - El Forum - 10-10-2008 [eluser]LuckyFella73[/eluser] As far as I know you can't nest a form into a form. More information about allowed elements in forms: http://www.w3.org/MarkUp/html3/forms.html In your script you open the first form via form-helper, then you open a second form within the first via plain HTML and in the end you have one closing form-tag. 2 form error - El Forum - 10-10-2008 [eluser]iainco[/eluser] Why do you need 2 forms? Code: <form action="blog/do_search" method="post" name="search" id="search"> Is the above code what you're trying to achieve? Edit: You shouldn't give the submit field the same name and id as the form either. |