Codeigniter: Submitting Forms -


How do I submit a form that can do two different things depending on the URI?

For example, if the string in the URI is "new" then this form will be stored separately if "new" does not occur in the URI.

I am having trouble implementing this, when a form is stored, it takes the URI which says "form_open".

The way to change the form_open path is probably done. How are you using it? Does the person who fills the form affect the "new" string?

What do I do, put hidden input on the form and set that value to "new". Then in the controller, use GET to assume the input form, and make simple IF / ELSE statement based on the value of that variable.

In this way, you can set up several different ways to use the same form - hidden = new, hidden = old, hidden = branded, hiddend = reallyold all forms Can process differently, even send them separately in your DB table or whatever.


Comments