Thread: php question
View Single Post
Old 10-25-2007, 12:50 AM  
GreyWolf
So Fucking Banned
 
Join Date: Jun 2007
Posts: 2,036
Quote:
Originally Posted by RageCash-Ben View Post
this was posted on another board

Code:
<?php
if ( !eregi('http', $_GET['id']) && is_numeric($_GET['id']) && file_exists($_GET['id'].'.html') )
{
    include( $_GET['id'].'.html';
    $next_page_id = $_GET['id'] + 1;
    $prev_page_id = $_GET['id'] - 1;
}
else 
{
    echo "error";
}
?>

This looks kinda nice Ben - covers a few contingencies
GreyWolf is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote