polaatx
asked on
Passing on URL variables in PHP
On this page: http://samsonhairrestoration.com/scratch/zoomify/image_gallery/5.php?name=craig_e&shoot=0&file=1&zm=28
I have a bunch of URL variables. I would like to click on the Full Screen link on the top and
go to the fullsize version of the image on this page: http://samsonhairrestoration.com/scratch/zoomify/image_gallery/full.php?name=craig_e&shoot=0&file=1&zm=28
The variables are identical. Just have to pass them from one page to the next.
I vaguely recall that in ASP one has to store the variables on the first page, in a hidden form field? I can't recall for sure and never done it in php.
What's the fastest, easiest way to do this in php?
I have a bunch of URL variables. I would like to click on the Full Screen link on the top and
go to the fullsize version of the image on this page: http://samsonhairrestoration.com/scratch/zoomify/image_gallery/full.php?name=craig_e&shoot=0&file=1&zm=28
The variables are identical. Just have to pass them from one page to the next.
I vaguely recall that in ASP one has to store the variables on the first page, in a hidden form field? I can't recall for sure and never done it in php.
What's the fastest, easiest way to do this in php?
ASKER
Hello, I made a mistake in explaining myself.
This is going to be a DYNAMIC link, so can't hardcode.
What I need to to grab the URL that loads 5.php page (the first page) and build a new URL where the is replaced with the URL of fullscreen page.
So
5.php?name=craig_e&shoot=0 &file=1&zm =28
would become
full.php?name=craig_e&shoo t=0&file=1 &zm=28
What is the best way to do that? Use URL Parse?
This is going to be a DYNAMIC link, so can't hardcode.
What I need to to grab the URL that loads 5.php page (the first page) and build a new URL where the is replaced with the URL of fullscreen page.
So
5.php?name=craig_e&shoot=0
would become
full.php?name=craig_e&shoo
What is the best way to do that? Use URL Parse?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thank you so much.
Question: why did you use _REQUEST instead of _GET ?
Question: why did you use _REQUEST instead of _GET ?
http://samsonhairrestoration.com/scratch/zoomify/image_gallery/full.php?name=craig_e&shoot=0&file=1&zm=28
So instead of:
<a href="#">Full Screen</a>
You would need:
<a href="http://samsonhairrestoration.com/scratch/zoomify/image_gallery/full.php?name=craig_e&shoot=0&file=1&zm=28">Full Screen</a>