how do you do this with tables? I prefer table not frames.

below works but the whole page goes to the other website.. when i just want to view that website in the table cell.

<?php
  if (isset($_POST['url'])) {
    header("Location: http://" . $_POST['url']);
  }
?>

i don't think iframe will work either because i'm trying to use a function 'get selected text' from the other website.

Member Avatar for diafol

if you really must do this, you can use iframes.

...
<td><iframe src="..." width="..." height="..."></iframe></td>
...

Look ar the iframe spec for other attributes (e.g. scrollbars etc). W3Schools is reasonably good.
However, you'd want to avoid too many on one page as they really slow down the page.

An alternative would be thumbshots - they place a static thumbshot of the site - see thumbshots.org.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.