Powered by:
FutureQuest Hosting


"...Remember being a youngster, mom or dad telling you "close the door"? Well the same applies to HTML ...."

Web Hosting
Shared       
Reseller     
VPS             
Dedicated 
Price:   $(US)
Space:     (MB)
Transfer:(GB)
Platform:


Advertise
Advertising Opportunities
Rate Card

Sponsor
Go Back   Webmaster Forums > Code Forum > PHP Forum


Reply
 
Thread Tools Rate this Webmaster Discussion
  #1  
Old 09-23-2009, 01:26 AM
wankata wankata is offline
Junior Member
 
Join Date: Sep 2009
Webmaster Discussions: 2
Rep Power: 1
wankata is on a distinguished road
Talking Auto iframe php?

Hello friends anyone knows a how to do auto iframe from php script?

Ex:

http://myhost/page.php?url=http://samplepage.html

Creates another page that puts the samplepage.html in an iframe inside the new page. Its much easier to put it on automatic than manually doing. Please help


Reply With Quote
  #2  
Old 09-24-2009, 12:09 PM
jthayne's Avatar
jthayne jthayne is online now
Senior Member
 
Join Date: Aug 2008
Location: Texas
Webmaster Discussions: 491
Rep Power: 15
jthayne is the hardest working person in the biz. jthayne is the hardest working person in the biz. jthayne is the hardest working person in the biz. jthayne is the hardest working person in the biz.
Re: Auto iframe php?

Quote:
Originally Posted by wankata View Post
Hello friends anyone knows a how to do auto iframe from php script?

Ex:

http://myhost/page.php?url=http://samplepage.html

Creates another page that puts the samplepage.html in an iframe inside the new page. Its much easier to put it on automatic than manually doing. Please help
To use your example, the PHP code to show the iframe would be the following:
PHP Code:
<?php
echo "<iframe src='".$_GET['url']."' />";
?>
__________________
Be sure to click the reputation icon to give rep to the person who helped you.
Check out the following sites: www.inbutnotoftheworld.com and www.mythoughtexactly.com.
Reply With Quote
  #3  
Old 09-29-2009, 09:44 AM
wankata wankata is offline
Junior Member
 
Join Date: Sep 2009
Webmaster Discussions: 2
Rep Power: 1
wankata is on a distinguished road
Unhappy Re: Auto iframe php?

Thanks sir for the reply. To be truthful I'm a complete noob with this work. Can you help me by giving me a sample page. And also the other pages that I need to make that type of work.
Reply With Quote
  #4  
Old 09-30-2009, 10:15 AM
jthayne's Avatar
jthayne jthayne is online now
Senior Member
 
Join Date: Aug 2008
Location: Texas
Webmaster Discussions: 491
Rep Power: 15
jthayne is the hardest working person in the biz. jthayne is the hardest working person in the biz. jthayne is the hardest working person in the biz. jthayne is the hardest working person in the biz.
Re: Auto iframe php?

You need three total pages -- linkpage.php, iframe.php, and samplepage.html.

In linkpage.html, you will include the following link somewhere on the page:
HTML Code:
<a href='iframe.php?url=samplepage.html'>Click Here</a>
When clicked on, the link will open iframe.php. Where you want the iframe to display, you will place the following code:
PHP Code:
<?php
echo "<iframe src='http://".$_GET['url']."' />";
?>
This will call the url referenced in the address.
__________________
Be sure to click the reputation icon to give rep to the person who helped you.
Check out the following sites: www.inbutnotoftheworld.com and www.mythoughtexactly.com.
Reply With Quote
Reply
Sponsor

Bookmarks

Tags
iframe , php

Thread Tools
Rate This Thread
Rate This Thread:

 

Similar Webmaster Discussions
Thread Webmaster Discussion Starter Forum Replies Last Post
Help with an Auto-responder csxkiddman HTML Forum 1 10-18-2008 09:00 PM
Auto refesh davidmook CGI Perl Forum 1 06-10-2006 03:03 PM
Auto-Redirect Sandi3d HTML Forum 1 04-20-2004 12:15 AM
How to auto jump? xav HTML Forum 2 02-26-2001 02:08 AM


All times are GMT -5. The time now is 06:09 PM.

Copyright © 1999 - 2009 Advanced HTML For Beginners and AHFB2000. All rights reserved.
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.