katerina Posted September 14, 2008 Share Posted September 14, 2008 Hi, I create a site and I would like your help. I use an image that if an user clicks on it , I want to open a new window and the source code of a page appears. To be more specific, I save in variable $url the url of a page. For example, $url="http://www.google.com"; So, when I click on an image it I want to be appeared a page with : 1. <HTML><html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>Google</title>... 2. function sf(){document.f.q.focus()} ... Could someone help me ?? Link to comment https://forums.phpfreaks.com/topic/124200-extract-code-from-a-page/ Share on other sites More sharing options...
Vivid Lust Posted September 14, 2008 Share Posted September 14, 2008 You could use an iframe???? <?php $url = $_GET['url']; ?> <iframe src="<?php echo( $url ) ?>"> </iframe> Not sure if it would work, im not that good with php, its just an idea XD Link to comment https://forums.phpfreaks.com/topic/124200-extract-code-from-a-page/#findComment-641250 Share on other sites More sharing options...
Mchl Posted September 14, 2008 Share Posted September 14, 2008 That would display the page indicated by url, not its code. Link to comment https://forums.phpfreaks.com/topic/124200-extract-code-from-a-page/#findComment-641253 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.