By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,950 Members | 1,032 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,950 IT Pros & Developers. It's quick & easy.

POST/SESSION variables and pagination, part II

P: 1
Hi folks, I have been working on a property listing search for a company for a while now and have hit a roadblock. I have searched the net up and down. A lot of Google results lead to this site, but I have never been able to get it to work.

Here's the setup-

The user submits search criteria via POST. The results php page pulls the $_POST array and displays the results with pagination of 20 results per page with links for Next/Previous.

Clicking on the pagination links loses the variables, whether I simply used $_POST or whether I coded, for instance, $_SESSION['county'] = $_POST['county']; at the top of the script. I, of course, am using session_start(); at the top of the scripts. I have tried all manner of responses regarding sessions,globals,php.ini, and anything else.

The pagination links uses a query string that refers to PHP_SELF and looks like
where the offset is the 2nd page of 20 results.

Does anyone have any ideas?

This is exactly the problem I am using.

I however have no idea how to fix it. I am not sure how to use the sessions to get it to work

I am using a form to post the my query. I am using the pagination class from

How can I make it hold over my variables so I get result for all pages?
May 21 '07 #1
Share this Question
Share on Google+
2 Replies

code green
Expert 100+
P: 1,726
I am not familiar with this class. Could you post the code which you are trying to make work?
May 21 '07 #2

Expert 5K+
P: 5,821
Split this thread from the original, since we're tackling a new problem.
May 23 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.