View Full Version : Get variables from a url, when..

01-25-2012, 05:11 AM
How would you get the variables/values from a url like
BUT do this on a different page.
I am trying to get base colors from 2 design URLs and mixing the colors.
Already know how to mix the colors, yet I don't know how to collect the values while on a different page then image.php
Thanks for the help :)

01-25-2012, 05:25 AM


Where value = your get value. Ex. Color=000&shade=FFF
To get color and shade, you'd use the get var and put color or shade in the place of value

01-25-2012, 05:27 AM
Yes, but how would I do this if I am on a different page then the url that has the values?

01-25-2012, 05:33 AM
I don't understand what your saying... Sorry. Is the info posted from a form?

01-25-2012, 03:08 PM
Put the values into the $_SESSION array. Then they are available to any script.

Note that you must use session_start() at the top of every script that uses sessions. It doesn't just start a session it also reopens an existing session.