Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Generate a hyperlink specifying the contents of a single frame

Status
Not open for further replies.

rvr1

Programmer
Feb 6, 2004
16
NL
I have hit a snag with my site and hope someone can help.

I have a page comprised of three frames:

-------------
| Header |
-------------
| MainFrame |
-------------
| Footer |
-------------

The contents of mainframe is generated dynamically. This has all been working fine, however, part of the site generates emails and in this, there is a hyperlink e.g.

At present, when this link is clicked, the page displays, however, obviously, the header and footer are not displayed - just the contents of what would have been in mainframe.

Is there and way that I can load the original frameset, and specify what I wish to be displayed in the mainbody.

I hope that makes sense.

Thanks!
 
You can output the original frameset and "infuse" the product page with the correct ID into the mainframe area.
All you need to do is to generate the frameset and substitute the URL for the mainframe content.
 
Could you please explain that in a bit more detail.

I am still quite new to all this....

Thanks!
 
All you need to do is have a HTML page that contains the frameset and fill in part of the URL for the mainframe:
Code:
<!-- main content -->
<FRAME src="[URL unfurl="true"]http://www.sitename.com/viewproducts?product_id=<?print($_GET[/URL]['product_id']);?>">

That will print the corect product ID into the URL for the main frame document. The other static frames just have the hardcoded URLs.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top