houssam_ballout Posted April 20, 2010 Share Posted April 20, 2010 Hello, I am using pagination to show my records. I had used this tutorial: http://php.about.com/od/phpwithmysql/ss/php_pagination.htm As for the files I am working with: I had a form: <form name="search" action="search.php"> <table border='1'> <tr> <td>Type</td> <td><input type='text' name='type' /></td> </tr> <tr> <td>Price</td> <td> <select name='price'> <option value='999'> < 1000 </option> <option value='1001'> > 1000 </option> </select> </td> </tr> <tr> <td>Zone</td> <td> <select name='zone'> <option>2</option> <option>3</option> </select> </td> </tr> <tr> <td></td> <td><input type="submit" name="search" value="Search" /> </tr> </table> </form> The search.php is a file that will display the results. The results are displayed on the page correctly,but when I try to go to next page it won't work, as if the page forget the variables. Any help? Thanks Link to comment https://forums.phpfreaks.com/topic/199123-page-pagination/ Share on other sites More sharing options...
conker87 Posted April 20, 2010 Share Posted April 20, 2010 Store the search value in a session then parse that through the pagination. Link to comment https://forums.phpfreaks.com/topic/199123-page-pagination/#findComment-1045115 Share on other sites More sharing options...
TeddyKiller Posted April 20, 2010 Share Posted April 20, 2010 You could also use the phpfreak tutorial. http://www.phpfreaks.com/tutorial/basic-pagination It's a good pagination system. Even though it states its basic Link to comment https://forums.phpfreaks.com/topic/199123-page-pagination/#findComment-1045126 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.