Page 1 of 1

Iframes into PHP

Posted: Mon May 01, 2006 3:54 pm
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>

Posted: Tue May 02, 2006 12:58 am
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.