View Full Version : index.php?page=xxx
Seanie
04-11-2005, 10:37 AM
Hi.
about a year ago i was given the code to make my index page and include .html files by using links like:
index.php?page=xxx
(xxx being xxx.html)
I've since lost the code :ermm:
Does anyone know how to do this
Thanks in advance!
sabret00the
04-11-2005, 11:54 AM
not sure if you can include an iframe however if you use a $_REQUEST['page'] could code it to use the $page as the src for the iframe.
Seanie
04-11-2005, 12:14 PM
the code i was given was just to request html files for the content of a page... there were no i frames
Colin F
04-11-2005, 01:18 PM
I'd guess all it does is read from the file and then echo it out...
Seanie
04-11-2005, 01:29 PM
yea... i just cant remember the code
WhSox21
04-13-2005, 06:35 PM
See if this is what you're looking for:
Edit index.php after the require_once('./global.php'); line.
Under it put:
if (!empty($_REQUEST['page']))
{
require_once($_REQUEST['page']);
exit();
}
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.