Passing on URL variables in PHP

On this page: 

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:

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?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Modify the "Full screen" URL on this page so that its url point to:

So instead of:
<a href="#">Full Screen</a>

You would need:
<a href="">Full Screen</a>
polaatxAuthor Commented:
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.


would become


What is the best way to do that? Use URL Parse?
OK. Try this:
echo('<a href="' . $_REQUEST['name'] .' &shoot=' . $_REQUEST['shoot'] . '&file=' . $_REQUEST['file'] . '&zm=' . $_REQUEST['zm'] . '">Full Screen</a>');

Open in new window


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
polaatxAuthor Commented:
thank you so much.

Question: why did you use _REQUEST instead of _GET ?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.