Hi,
I have the following problem.
I have a search box on a page called search.php
and on submit, it sends the following variables:
$HTTP_POST_VARS['job_type'];
$HTTP_POST_VARS['type_of_work'];
$HTTP_POST_VARS['area'];
on my search_result.php, I retrieve those values:
$job_type = $HTTP_POST_VARS['job_type'];
$type_of_work = $HTTP_POST_VARS['type_of_work'];
$area = $HTTP_POST_VARS['area'];
And have the following query to display the correct results:
$query_rs_product_data = "SELECT * FROM product_data WHERE job_type = '".$job_type."' AND type_of_work = '".$type_of_work."' ORDER BY product_data.start_date DESC";
all well and good.
I also have my usual code for pagination, showing 10 results at a time.
My problem is that because my query relies on those form varialbles being retrieved from the previous page and because my pagination script purely "reloads" the search result page, when it does so, the
$job_type = $HTTP_POST_VARS['job_type'];
$type_of_work = $HTTP_POST_VARS['type_of_work'];
$area = $HTTP_POST_VARS['area'];
ARE EMPTY!, hence, my pagination not showing the next 10 results, because my query has no match when the page reloads.
How can i get around that and once my HTTP_POST_VARS are retireved, that they REMAIN on the page, so it can reload and see them again, if that makes sense..
many thanks!