peuge Posted June 27, 2008 Share Posted June 27, 2008 Ok so I have an image gallery with three parts 1)menu.php ---> which dynamically creates categories depending on the folders in images/ 2)thumbs.php ---> which shows the pics in selected category as thumbs 3)gallery.php ---> which includes the above two .php files and puts them in a table with a large image in the middle which changes when the user clicks on a thumb. This all works perfectly. Now I have to create an index.php which has a main menu (part of which there is a gallery link). Now when the gallery is displayed in a content table on index.php and I click on one of the thumbnails or a categorie it loads only gallery.php and nothing else. This is because all of my href's in menu.php and thumbs.php send the variables to gallery.php, now do I have to change this so they send the variable to index.php then to gallery.php or is there another way around this so that when the user clicks on a thumbnail it opens up the big picture but still keeps the main page of my site? I hope I explained this ok. Thanks in advance Link to comment https://forums.phpfreaks.com/topic/112146-solved-please-help-sending-variables-but-remain-on-same-page/ Share on other sites More sharing options...
peuge Posted June 27, 2008 Author Share Posted June 27, 2008 SOLVED. Had to send to index.php first then just did a $_GET of the variable before I included gallery.php Link to comment https://forums.phpfreaks.com/topic/112146-solved-please-help-sending-variables-but-remain-on-same-page/#findComment-575736 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.