CodeIgniter Forums
Search bar output. - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Search bar output. (/showthread.php?tid=54921)



Search bar output. - El Forum - 10-01-2012

[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 <(^.^)-!


Search bar output. - El Forum - 10-01-2012

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




Search bar output. - El Forum - 10-02-2012

[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