dbrimlow Posted June 28, 2007 Share Posted June 28, 2007 I am passing form select values (a1 through a14) from one url to another (where the database resides) It returns an "includes" page that lists all items matching the select criteria; this may be up to 30 pages worth of results with a "next" link. I want to keep the url on the "next" relatively simple, but not change the actual URL and it's function. example (this is what I get when I view the next properties: http://mysitecom/aptsforsale.php?page=2&price=ALL&searchSize=ALL&area=ALL&a1=1&a2=&a3=1&a4=&a5=1&a6=&a7=&a8=&a9=&a10=&a11=&a12=&a13=&a14=&selectFeatures=yes I would like to simply have it show the next page #: http://mysitecom/aptsforsale.php?page=2 Can this be done? Quote Link to comment Share on other sites More sharing options...
effigy Posted June 28, 2007 Share Posted June 28, 2007 After the first submission you can store the SQL or a serialized version of the data in a session/cookie, or pass it along via hidden form items. Quote Link to comment Share on other sites More sharing options...
Wildbug Posted June 28, 2007 Share Posted June 28, 2007 Do you need all those GET values in the next page? If so, and you don't want them in the URL, you can use a POST method with a button INPUT to go to the next page. If you just want to remove the rest of that URL after a certain point, you can use <?php $newurl = substr($oldurl, 0, strpos($oldurl, '&') + 1) ?> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.