Jump to content

Retrrieve link attribute from previous page


Recommended Posts

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.