Welcome Guest, Not a member yet? Register   Sign In
Two Forms in One Controller?
#3

[eluser]natefons[/eluser]
why not save your self the headache, and do the forms outside the controller?

in the view:
Code:
<form name="formA" method="post" action="/index.php/controller/func1">
blha blah blah
</form>

<form name="formB" method="post" action="/index.php/controller/func2">
blah blah blah
</form>


now in the controller, you would create 2 functions that handles the 2 forms separately.

u can use the $this->input->post to get the post details.


Messages In This Thread
Two Forms in One Controller? - by El Forum - 09-21-2010, 10:45 PM
Two Forms in One Controller? - by El Forum - 09-21-2010, 11:17 PM
Two Forms in One Controller? - by El Forum - 09-22-2010, 09:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB