Hey Gang,
I've got yet another PHP question for you all. I am thinking this should be possible, but I have no clue how to implement it.
Let's say you have a dynamic page that stores/passes user selections on the page via variables through the address bar: (to be used in GETS later)
page.php?sortby=iid&sorder=0
What if I want to add another user selection option like a drop down box that allows further customization of the page display:
page.php?sortby=iid&sorder=0&rpp=10
When I'm building the links for the drop down box, I don't wish to have to hard code all the previous selections in the address bar just to add another one on. I would like to simply build the link to say put &rpp=10 on the end of whatever is already on the address bar, so it doesn't matter if the selection is made at this point:
page.php?sortby=iid&sorder=0 + &rpp=10
or this point
page.php?sortby=iid&sorder=0&cpn=3 + &rpp=10
As it is right now I'm saying http://?sortby=$sortby&sorder=$sorder&rpp=$rpp
but if i wanted to say: http://sortby=$sortby&sorder=$sorder&cpn=$cpn&rpp=$rpp
I would have to go in and physically change each link, and that sucks.
Is there anyway to say something like:
http://?-all previous after ? stuff-&rpp=$rpp
(Without knowing specifically each time how much previous stuff there will be)
I hope I phrased this clearly enough.
Thanks for any assistance on this, I know i'm really limiting myself hard coding these links each time, when I simply wish to append to an existing string.
-Karl