Irman Posted June 29, 2013 Share Posted June 29, 2013 Hi All I have a few links in a page which will direct to 1 page. And in that 1 page, there is a iframe link which will direct the user depending on the link attribute name from the previous page. For Example on previous_page.php, i have the following link: <a id="asia" href="next_page.php">Asia</a> <a id="europe" href="next_page.php">Europe</a> <a id="america" href="next_page.php">America</a> When selected, it will direct to the next_page.php where there will be an iframe. I've coded the iframe as follows: <iframe src="http://myurl?c=<?php echo $continent; ?>&a=PTT03353"></iframe> where $continent will be define by the previous page a tag ID. How do i achieve this? Link to comment https://forums.phpfreaks.com/topic/279680-retrrieve-link-attribute-from-previous-page/ Share on other sites More sharing options...
ginerjm Posted June 29, 2013 Share Posted June 29, 2013 href='nextpage.php?place=America' and <? $_GET['place'] ?> Link to comment https://forums.phpfreaks.com/topic/279680-retrrieve-link-attribute-from-previous-page/#findComment-1438463 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.