More pagination Yawn....
Posted: Thu Sep 01, 2005 4:29 am
Hi Everybody
I have a html page with a search form on it which when submitted brings up the users required criteria results on a php page. 'search_php'. I have put a pagination script on this page. This works fine when clicking the next link to view the next page of results. After clicking the next link it will say 'search_php?page = 2 in the address bar,... click next again and it says page 3 in the address bar so far so good. At this point I thought :at last, finally sorted this pagination headache.
But then I clciked the previous link... to go back.. which was OK until the 'search_php?page = 1 address came up in the address bar of browser. my original search results were lost. 'search_php?page = 1 was not showing the original required results from the form... Huh... Do I need to have the form on search_php page to eradicate this. Im pretty sure the pagination script is OK I can send it in if it helps
Hope someone can help... Want my life back
Simplecat
I have a html page with a search form on it which when submitted brings up the users required criteria results on a php page. 'search_php'. I have put a pagination script on this page. This works fine when clicking the next link to view the next page of results. After clicking the next link it will say 'search_php?page = 2 in the address bar,... click next again and it says page 3 in the address bar so far so good. At this point I thought :at last, finally sorted this pagination headache.
But then I clciked the previous link... to go back.. which was OK until the 'search_php?page = 1 address came up in the address bar of browser. my original search results were lost. 'search_php?page = 1 was not showing the original required results from the form... Huh... Do I need to have the form on search_php page to eradicate this. Im pretty sure the pagination script is OK I can send it in if it helps
Hope someone can help... Want my life back
Simplecat