• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Search bar output.

#1
[eluser]Neclord02[/eluser]
Hi there!

Here's the thing, I've got a searchbar

Code:
<div>
    &lt;form class="searchform" action="handler" method="get" name="search"&gt;
            <label for="Recipe Search" >Recipe Search: </label>
            /* Some input here */
    &lt;/form&gt;
</div>

What I want, is to make a controller (handler.php) that gets the output from the search query with GET and puts it in an array.

How is this done? I'm quite a noob so don't hate Sad.

Thank's in advance <(^.^)-!

#2
[eluser]solid9[/eluser]
Everything is in the Docs.
Read the documentation.


#3
[eluser]Hank the Punk[/eluser]
Code:
$var = $this->input->get('input_name');
That will allow you to get the value of the field named 'input_name' in the 'handler.php' controller


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.