![]() |
multiple controllers with forms cross submitting - 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: multiple controllers with forms cross submitting (/showthread.php?tid=48477) |
multiple controllers with forms cross submitting - El Forum - 01-18-2012 [eluser]USCTrojans[/eluser] I've got an interesting thing going on right now and can not figure out how to fix it. I am using HMVC modular controllers and am trying to use a controller for a login function and one for a create profile function. I have verified that they both work and validate etc when apart, but for some reseason when I load them both as modules onto one page the bottom function pulls the results of the top function when I click submit. I have tried renaming the submit button and am using code igniter form class but still can not figure out what is causing this. here's my homepage controller Code: function index() I have validated that both the create_profile controller and login controller work on this page when isolated but when together they cause problems. I'm guessing it has to do with the form submit buttons but am not sure. I even tried changing one button to a reset button but did not work either. Thanks for any help multiple controllers with forms cross submitting - El Forum - 01-18-2012 [eluser]vbsaltydog[/eluser] Paste the source code from the browser. multiple controllers with forms cross submitting - El Forum - 01-18-2012 [eluser]USCTrojans[/eluser] Code: <div id="login_form"> it says the action is localhost:8888/index.ph/create_profile/create_profile_valdation but it submits the information to the form at the top with action:http://localhost:8888/index.php/login/local_validate_Login thanks multiple controllers with forms cross submitting - El Forum - 01-18-2012 [eluser]CroNiX[/eluser] It's against HTML standards to have nested forms. multiple controllers with forms cross submitting - El Forum - 01-18-2012 [eluser]USCTrojans[/eluser] that makes perfect sense. I didn't realize that code igniter did not automatically close the form so it was just a matter of adding an echo form_close() and it works great...thanks |