Can anyone code my layout in IFrames?
Please PM me and i will send you the layout.
Printable View
Can anyone code my layout in IFrames?
Please PM me and i will send you the layout.
Can anyone ?
Edited by Garion (Forum Super Moderator): Please do not double post, thanks :).
iFrames = Rubbish.
You should use PHP Includes.
Or even PHP Basic Navigation, search it on google.PHP Code:<?
include("file.php");
?>
IFrames can be good, but about 1/1000 of the time.
PHP Includes are far better I think, if you know how to use them properly.
DO NOT use geezers code. That sort of include is crap. You want a detailed include
http://uk2.php.net/include/
have fun.
Ive always used geezers..
Does the job.
Ive never needed too :D
Well.. My mommy says im special..
Because i normally code in CSS, i use the Include for the source.css file.
Then the rest is simple
LMAO.
I use:
Quote:
<?php
$val = $_GET['id'];
$val .= ".php";
$dirty = array("..");
$clean = array("");
$val = str_replace($dirty, $clean, $val);
if (isset($_GET['id'])) {
if (file_exists($val)) {
include "$val";
}
else {
include "404.php";
}
}
else {
include "home.php";
}
?>
I used it AGES ago when I used Radio Stats etc. Now I use PHP Navigation.
PHP Navigation?
That code, and then name the links like:
index.php?id=home
index.php?id=page
Nope,
www.site.com/?page_here
OO. Thats not a good way,