Technupe
Technupe

Reputation: 4961

codeigniter views setup problem

I have two views from a form, one is loaded in my codeigniter index, and another is loaded in its on function. how do i make the form work so that when i click submit on the first form it loads the new view/function as the new

Upvotes: 0

Views: 92

Answers (1)

David Chan
David Chan

Reputation: 7505

if i understand your question,

i think you need to set the action of the first form to be the url of your second controller

<form action=/controller/form2 >

or you can do a redirect

or you can simply load the form2 instead of form1

Upvotes: 2

Related Questions