PHP: passing GET between multiple pages
Posted
by aterimperator
on Stack Overflow
See other posts from Stack Overflow
or by aterimperator
Published on 2010-03-30T18:32:46Z
Indexed on
2010/03/30
18:33 UTC
Read the original article
Hit count: 284
I'm building a set of pages where I have a number of GET variables and it is often valuable to keep passing it along to the next page. This leads to ugly code where I have to have "if this $_GET variable is set, dynamically add it to this hyperlink". This is, in many senses, not a problem; but I had the thought "there must be a better way to do this", I mean after all basically all I want is to take the '?' and everything after it and append it to the links on that page, it would seem this should be rather simple (or at least possible to do in a for loop). I tried google searching but couldn't find anything, so I figured I'd see if any of you happen to know.
Why not use SESSION? Because these pages need to be capable of being bookmarked.
Thank you.
© Stack Overflow or respective owner