Welcome Guest, Not a member yet? Register   Sign In
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




Theme © iAndrew 2016 - Forum software by © MyBB