Welcome Guest, Not a member yet? Register   Sign In
How do I use multiple form input so it can be used in a search feature
#11

[eluser]msank[/eluser]
Alrighty! Thanks for all of your help.
#12

[eluser]CroNiX[/eluser]
I'm wondering why you just don't send them as 2 separate variables instead of messing with an array for this?

in the form
Code:
echo form_hidden('search1', '258') . "\n";//Value 1 to be used for searching
echo form_hidden('search2', '900') . "\n";//Value 2 to be used for searching

In the controller:
Code:
$search1 = $this->input->post('search1');
$search2 = $this->input->post('search2');

$inventory = $this->web_inventory_model->searchInventory($search1, $search2);
#13

[eluser]msank[/eluser]
How would the model look? I like your idea, but it won't work with my current model...




Theme © iAndrew 2016 - Forum software by © MyBB