Welcome Guest, Not a member yet? Register   Sign In
Display results from a form on the same page
#1

[eluser]a21wat[/eluser]
I know this is probably a stupid question but I am new to this. I have a form which submits and I want the results to display on the same page I submitted the form from.

Could someone point me in the right direction.
#2

[eluser]Gavin Blair[/eluser]
You can submit the form to a controller that loads the same view. This will result in the page being reloaded, but it will be the same page.

You can also try using an Ajax library like JQuery.
#3

[eluser]gtech[/eluser]
check out the validation section of the documentation there is example code on how to do exactly what you want.

[url="http://ellislab.com/codeigniter/user-guide/libraries/validation.html"]http://ellislab.com/codeigniter/user-guide/libraries/validation.html[/url]




Theme © iAndrew 2016 - Forum software by © MyBB