Jump to content

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.

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.

Guest
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.