[HTML] [IFRAME] My websites iframes. [IFRAME] [HTML]

Newbie Spellweaver
Joined
Jan 12, 2009
Messages
54
Reaction score
1
Hey,

I have recently made a habbo fansite. but when i go to add iframes to my layout it buggers it all up on preview. am i doing something wrong?

I have a few screens to show you.

Screenshots
-----------------------------------------------------------------------------

Layout without iframe:
lucasdann - [HTML] [IFRAME] My websites iframes. [IFRAME] [HTML] - RaGEZONE Forums

-----------------------------------------------------------------------------

Layout with iframe:
lucasdann - [HTML] [IFRAME] My websites iframes. [IFRAME] [HTML] - RaGEZONE Forums

---------------------------------------------------------------------------

Cheers, Lucas
 
Yes i changed the 403. but i do not know any other way than iframes.... And i find iframes can load things quicker...
 
I just coded a simple script that can be very useful for any site.

Just put the following code where you want the content to show.

PHP:
<?php
$id = $_GET[id];
$page = "inc/".$id.".php";
if(file_exists($page)) {
include($page);
}else{
echo "This page could not be found.";
}
?>

Then make a folder called inc, and put all the content you want in there, and save it as a PHP file.

Then your url will be:
http://yourwebsite.com/index.php?id=[NAME OF THE PAGE IN INC]
 
Last edited:
Rasta! Thank you for this... makes life so much easier.

---------- Post added at 06:04 AM ---------- Previous post was at 05:59 AM ----------

EDIT: Double post -.-

Rasta you could change "inc" to something like pages
E.g
PHP:
   <?php
$id = $_GET[id];
$page = "pages/".$id.".php";
if(file_exists($page)) {
include($page);
}else{
echo "This page could not be found.";
}
?>
 
Rasta! Thank you for this... makes life so much easier.

---------- Post added at 06:04 AM ---------- Previous post was at 05:59 AM ----------

EDIT: Double post -.-

Rasta you could change "inc" to something like pages
E.g
PHP:
   <?php
$id = $_GET[id];
$page = "pages/".$id.".php";
if(file_exists($page)) {
include($page);
}else{
echo "This page could not be found.";
}
?>

It starts.. He's changing the code.. getting comfortable with PHP :closedeyes:
 
Back