Passing vaiable via URL and retrieving them???
Posted: Tue Mar 08, 2005 3:01 am
ok I have some buttons that I would like to store php variables and then insert them into the page that the link redirects them to...
Here's the scenario...
I have a button that I would like to store a variable called "weddings"
the link will hold the variable and redirect the browser to a page called gallery.php
once at the gallery.php page it will convert the vaiable "weddings" into
"thumbnails.php?album=3" . Then I have a place where I am using an iframe that will put that "thumbnail...." variable into it and then load the iframe accordingly.
Basically I need to know how to pass a vaiable via URL and then retrieve it on the new page and use it.
Notice that the variable ultimatly needs to be "thumbnails.php?album=3" but since it has the "?" in it I don't think that I can pass that via the URL...can I?
For those interested heres what I am using it for...
I have a template page that has differn't links on it... One one side of the page I have a menu and on the other side I have a "content" box that I change for each page. I am using a photo program called coppermine and am uning "iframes" to import that photo program into the "content" box on my templates. I would like to have some of the links on my template load the photo program to specific galleries...So I need to pass a variable through the url and then have the iframe use that variable as part of the URL that it load.
Anyone that can help would be a lifesaver and I would own you greatly.
Thanks
Jason
Here's the scenario...
I have a button that I would like to store a variable called "weddings"
the link will hold the variable and redirect the browser to a page called gallery.php
once at the gallery.php page it will convert the vaiable "weddings" into
"thumbnails.php?album=3" . Then I have a place where I am using an iframe that will put that "thumbnail...." variable into it and then load the iframe accordingly.
Basically I need to know how to pass a vaiable via URL and then retrieve it on the new page and use it.
Notice that the variable ultimatly needs to be "thumbnails.php?album=3" but since it has the "?" in it I don't think that I can pass that via the URL...can I?
For those interested heres what I am using it for...
I have a template page that has differn't links on it... One one side of the page I have a menu and on the other side I have a "content" box that I change for each page. I am using a photo program called coppermine and am uning "iframes" to import that photo program into the "content" box on my templates. I would like to have some of the links on my template load the photo program to specific galleries...So I need to pass a variable through the url and then have the iframe use that variable as part of the URL that it load.
Anyone that can help would be a lifesaver and I would own you greatly.
Thanks
Jason