CodeIgniter Forums
codegneiter serach filter and resullts - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: codegneiter serach filter and resullts (/showthread.php?tid=77027)



codegneiter serach filter and resullts - jose martin mbomio - 07-13-2020

hello coders,  how can i write a filter search box with codegneiter im new .
i would like a complete guide for this. the idea is to use a  html php form  with select options.
once u filter and click search button , u have the results in the same windows.


RE: codegneiter serach filter and resullts - qury - 07-13-2020

Hi,

The relevant guide for CI4 is here: http://codeigniter.com/user_guide/libraries/validation.html
The same for CI3 is here: http://codeigniter.com/userguide3/libraries/form_validation.html

What you will need is a controller that handles the request and validates your form submission.

And i would use 2 view files:
- for the form
- for the results