Thread: php question
View Single Post
Old 10-24-2007, 09:20 PM  
papill0n
Unregistered Abuser
 
Industry Role:
Join Date: Oct 2007
Posts: 15,547
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";
}
?>
papill0n is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote