Jump to content

[SOLVED] PHP Include Question


sweetique

Recommended Posts

It kind of works.

 

Code I was already using.

 

<?php
   $page = $_GET['page'];
   include ("$page.htm");
?>

 

your code

 

<?php
if ($pagefound) 
{
include ("$page.htm");
}
else
{
include ("notavailable.htm");
}
?>

 

the "notavailable.htm" shows up on the bottom of every page

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.