ok, im new to php coding, im trying to figure out if there is a way to carry a variable from one page and have it show in the next.
For example, i have one page that is used just to display pictures, i use it as a popup window, and on the previous page i have a Gallery, is there any way to have a variable that carry's into the page its opening from the page that opened it, so i dont have to have a seperate page for each picture, so that i can just put something in so when it clicks on the link it opens the window and opens the picture i clicked on.
(If that makes any sense)
Thanks
New to PHP, need info
Moderator: General Moderators
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
that depends on how you stored the image.. if it's inside the database, then you need to point it to a downloader type script; search for "+force +download"
if you stored the filename/path of the image, then you can use php to place that accessible path as the src url. If you want to keep the path to the file "secret", then use a downloader script as found by the above stuffs.
if you stored the filename/path of the image, then you can use php to place that accessible path as the src url. If you want to keep the path to the file "secret", then use a downloader script as found by the above stuffs.
grr i cant figure it out lol. (I just started using PHP Yesterday)
Code: Select all
<?PHP
echo "<img src="pictures"'.$_GET['id].'".jpg"' width="754" height="570">";
?>