Welcome Guest, Not a member yet? Register   Sign In
Form open
#1

[eluser]_Smilie_[/eluser]
Hi,
I'm trying to create my form, of an existing template, which also validates input etc, and I'd like to keep it that way.
Is it possible to just use a regular form tag, and point the action to /class/function and it will work just fine, or?

Further more, I wonder a bit about the URL. if I have let's say /class/edit that show me the form, then I would probably want something like /class/edit/do or something else, to send the form to. Without codeigniter I could also submit the form to it's own page, but I dunno if that's possible in codeigniter, and if so, how to accomplish it. Any advice is strongly appreciated.
#2

[eluser]Mauricio de Abreu Antunes[/eluser]
You can submit your form to the same controller.

For example, if you are using login controller, you can submit your form to login.
:-)
#3

[eluser]Aken[/eluser]
You can submit forms to the same page in CI. It's perfectly doable.

You can set the form action to either the same URL, or leave it blank. Blank = same page.




Theme © iAndrew 2016 - Forum software by © MyBB