Input field for pagination

By Daryl - December 2, 2013

Hi proba,

What I would do is I will put each search values into a hidden fields with the same field name together with the text field for entering the page number.

For example:

<form>
  <input type="hidden" name="offer"     value="<?php echo @$_REQUEST['offer']; ?>">
  <input type="hidden" name="price_min" value="<?php echo @$_REQUEST['price_min']; ?>">
  <input type="hidden" name="price_max" value="<?php echo @$_REQUEST['price_max']; ?>">
  <input type="hidden" name="submit"    value="Submit">
  <input type="text"   name="page"      value="<?php echo @$_REQUEST['page']; ?>">
</form>

Hope this helps!

Cheers!

Daryl Maximo
PHP Programmer - interactivetools.com