Multiple input fields search |
[eluser]the_unforgiven[/eluser]
Hi all, Help needed here: I want to provide a form that has two input fields, date & time one field is called 'from' the other is called 'to' and also need to get the options from a dropdown menu that is pre-populated. So if the user inputs a from and to date/time then selects a option from the dropdown I want it to search then database to match these and return the results, with pagination based on 15 results per page. Code in my controller is here -> http://pastie.org/8505391 But it's not working and my form looks like this -> http://pastie.org/8505394 Really could do with some help on this please....
[eluser][email protected][/eluser]
Use following HTML code in view for "from" and "to" input fields : Code: <input type="text" class="form-control" name="from_field" id="from_field" class="form-control" placeholder="Date From" value=""> And to access the post variables in controller : Code: $from = $this->input->post('from_field'); |
Welcome Guest, Not a member yet? Register Sign In |