Multiple Forms on one page. - 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: Multiple Forms on one page. (/showthread.php?tid=21516) |
Multiple Forms on one page. - El Forum - 08-12-2009 [eluser]wasabi1948[/eluser] Hello everyone. First of all, I'm a beginer with CI and in some way with PHP. An keep running into this problem (I manage to work around it -by ignoring it, and choosing other aproaches, but not this time). So here it is: i have a page with 2 forms: one for login (email, pass, submit) which is submited to "users/login", and a order form (several selects and submit button) which is submited to orders/some_action. Problem is: I click the submit button for the order form, and it submits to users/login. What am I doing wrong? See for your self: http://paintedsouvenirs.com/index.php Multiple Forms on one page. - El Forum - 08-12-2009 [eluser]Maglok[/eluser] Well in plain html <form></form> to open and close a form. For CI that is <?php echo form_open(target');?> and <?php echo form_close();?> Multiple Forms on one page. - El Forum - 08-12-2009 [eluser]Johan André[/eluser] Your forms seems just fine... Multiple Forms on one page. - El Forum - 08-12-2009 [eluser]davidbehler[/eluser] Works fine for me...even though I don't see the login form on http://paintedsouvenirs.com/index.php. I have to click on the Login link in the top to get to the login screen. Multiple Forms on one page. - El Forum - 08-12-2009 [eluser]wasabi1948[/eluser] I closed the form as I should... now I removed the login form, and put a link to a login form, so I can work on something else. If I can't find a solution to this... this is the only way (separate login view)... but is not ideal. Multiple Forms on one page. - El Forum - 08-12-2009 [eluser]basementDUDE[/eluser] can you put the login form back, so we can reproduce the problem and help you? Multiple Forms on one page. - El Forum - 08-12-2009 [eluser]wasabi1948[/eluser] I put it back. It looks like it works just fine now. Weird stuff. Thanks you all for the help. Multiple Forms on one page. - El Forum - 08-12-2009 [eluser]Maglok[/eluser] It's just scared of the combined power of the CI community bearing down on it! |