Jump to content

php open link in window or frame?


Thundarfoot

Recommended Posts

I have a html table in which each cell has a hyperlink to a diffrent .php file

currently I am using href target _blank to open in new window.

 

However, I would much prefer to open the link in the current page, but keep the html link table at the top of the page. I could edit each file to include the table...but wonder if there might not be an easier way?

 

something along the lines of a framset or something?

 

Any help is much appreciated.

Link to comment
https://forums.phpfreaks.com/topic/89147-php-open-link-in-window-or-frame/
Share on other sites

use some php.  Put the table with the links in its own file (we'll call it table.html);

 

Then in whatever page you want the table on:

 

<?php include("table.html"); ?>

 

example of table.html:

<table>
<tr>
    <td>LINK</td>
    <td>LINK</td>
    etc...
</tr>
</table>

 

Whatever you do, stay away from frames.  They are bad.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.