MDanz Posted October 16, 2009 Share Posted October 16, 2009 how do you do this with tables? I prefer tables not frames. below works but the whole page goes to the other website.. when i just want to view the website in a 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. Link to comment https://forums.phpfreaks.com/topic/177949-view-another-website-in-table-cell/ Share on other sites More sharing options...
mrMarcus Posted October 16, 2009 Share Posted October 16, 2009 two ways .. iFrame and standard framset. neither of which are PHP. the header("Location: ") function is a redirect. doesn't display anything. you're trying to use functions from a script on another website on your website? i've never tried, nor am i certain of its security, but include() allows for remote file access .. again though, i don't know if what you want can be achieved this way, so go and play with it. i could see it allowing you to use a function from within that file, maybe. Link to comment https://forums.phpfreaks.com/topic/177949-view-another-website-in-table-cell/#findComment-938268 Share on other sites More sharing options...
teynon Posted October 16, 2009 Share Posted October 16, 2009 It sounds like your trying to do a "get selected text" function as if you were working with a textbox (IE Javascript) If this is the case, I would think that an Iframe would work, you would probably just have to apply a name to the iframe so you could reference it from javascript. It would be far to complicated to try to import a website into a table. Your putting a completed HTML page into a table which would completely mess up the display of your web site or theirs. So, my suggestion is <iframe name="selectMyText"> Javascript getSelectedText("selectMyText") Link to comment https://forums.phpfreaks.com/topic/177949-view-another-website-in-table-cell/#findComment-938275 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.