Welcome Guest, Not a member yet? Register   Sign In
Pagination not passing the search parameters
#7

[eluser]TheFuzzy0ne[/eluser]
This hasn't been tested, but should hopefully illustrate the point.

some_view.php
Code:
<html>
    <head>
    </head>
    <body>
        <form action="/some_controller/search" method="post">
            <label for="search_word">
                Search word:<br />
                &lt;input type="text" name="search_word" id="search_word" /&gt;
            </label>
            &lt;input type="submit" name="submit" value="Search" /&gt;
        &lt;/form&gt;
    &lt;/body&gt;
&lt;/html&gt;

some_controller.php
Code:
class Some_controller extends Controller {

    function Some_controller()
    {
        parent::Controller();
    }

    function index()
    {
        $this->load->view('some_view');
    }

    function search()
    {
        redirect('/some_controller/show_results/' . $this->input->post('search_word'));
    }

    function show_results($search_word="")
    {
        echo "Searching for $search_word";
    }
}

Hope this helps.


Messages In This Thread
Pagination not passing the search parameters - by El Forum - 04-23-2009, 01:03 AM
Pagination not passing the search parameters - by El Forum - 04-23-2009, 04:57 AM
Pagination not passing the search parameters - by El Forum - 04-23-2009, 07:35 AM
Pagination not passing the search parameters - by El Forum - 04-23-2009, 08:52 AM
Pagination not passing the search parameters - by El Forum - 04-24-2009, 12:50 AM
Pagination not passing the search parameters - by El Forum - 04-24-2009, 02:35 AM
Pagination not passing the search parameters - by El Forum - 04-24-2009, 05:19 AM
Pagination not passing the search parameters - by El Forum - 04-24-2009, 05:40 AM
Pagination not passing the search parameters - by El Forum - 04-24-2009, 08:06 AM
Pagination not passing the search parameters - by El Forum - 04-24-2009, 11:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB