Welcome Guest, Not a member yet? Register   Sign In
How to build a proper search form
#1

[eluser]CI_Newb[/eluser]
This is the way I do it. Please tell me if there is a better strategy to this.

I have a page that has a form with all the different fields.

When the form is submitted, it goes to another controller that queries the db for my criteria, loads pagination and displays it on the same page as the form but in a results table underneath the search form.

It works fine but not with pagination. So this got me wondering if there is a better way you pro's can suggest to build a proper search form with results.

Is it better to split the form and results up onto 2 different views?

I dunno




Theme © iAndrew 2016 - Forum software by © MyBB