Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>It seems like you're kind of discussing two different approaches. If you wanted to make a request to mysite.com/blog/index.php/search&amp;q=what_I_am_looking_for</p> <p>This is going to call the search controllers default method (which is index by default). If you wanted to use the URL to pass parameters like that you would go to your function in the search controller and do: print_r($this->input->get('q'));</p> <p>This will print out "what_am_I_looking_for".</p> <p>An easier approach in my opinion would be to: 1. Create a view called "search_view" with the HTML content you pasted above, and have the form "action" <a href="http://www.mysite.com/blog/index.php/test/search" rel="nofollow">http://www.mysite.com/blog/index.php/test/search</a></p> <ol> <li><p>Create a controller called "Test" that looks like the following:</p> <pre><code>class Test extends CI_Controller { function search() { $search = $this-&gt;input-&gt;post('searchtext'); print_r($search); } public function display_search() { $this-&gt;load-&gt;view('search_view'); } } </code></pre></li> <li><p>Visit <a href="http://www.mysite.com/blog/index.php/test/display_search" rel="nofollow">http://www.mysite.com/blog/index.php/test/display_search</a> in your browser. This should present you with the form you placed in search_view.php. Once the form is submitted, you should be sent to the search function and print out the variable $search, which will have whatever text you submitted on that form.</p></li> </ol> <p>If this isn't what you were looking for then I am afraid I do not understand your question.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload