Iframes into PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
lovely_bones
Forum Newbie
Posts: 1
Joined: Mon May 01, 2006 3:50 pm

Iframes into PHP

Post by lovely_bones »

This is my basic code, but I'm using it on a site that doesn't support use of iframes so I need help converting this into php. Can anyone help me?

Code: Select all

<div id=INDEX style="position:absolute; top:57; left:60; width:450; height:300; border:2px solid black;">

<center>
<a href="http://www.freewebs.com/fashionxcore_camwhores/staff.html" target="#FRAME1">Staff</a> | 

<a href="http://www.freewebs.com/fashionxcore_camwhores/rules.html" target="FRAME1">Rules</a> | 

<a href="http://www.freewebs.com/fashionxcore_camwhores/application.html" target="FRAME1">Application</a> | 

<a href="http://www.freewebs.com/fashionxcore_camwhores/affiliates.html" target="FRAME1">Affiliates</a> | 

<a href="http://www.freewebs.com/fashionxcore_camwhores/contestwinners.html" target="FRAME1">Winners</a> | 

<a href="http://www.freewebs.com/fashionxcore_camwhores/banners.html" target="FRAME1">Banners</a> |

<a href="http://www.freewebs.com/fashionxcore_camwhores/currentcontests.html" target="FRAME1">Contests</a> | 

<a href="http://www.freewebs.com/fashionxcore_camwhores/index.htm" target="FRAME1">Main</a>

</center> <Br>


<centeR>
<IFRAME name="FRAME1" src="http://www.freewebs.com/fashionxcore_camwhores/index.htm" width=450 height=290 marginwidth=0 marginheight=0 frameborder="0" scrolling=auto></IFRAME>

</center>


</div>
User avatar
coolaid
Forum Newbie
Posts: 4
Joined: Mon Apr 03, 2006 4:27 am

Post by coolaid »

turn your page into .php

instead of <ifram src="url/to/file.hml"></iframe>

use

<? include("url/to/file.html"); ?>


just make sure you dont have the head, title, body, html, or any other base-html-page tags applied to the file you include.
Post Reply