Re: [PHP Issue] Trying to include php code in a html content box but it is giving iss
Quote:
Originally Posted by
jonathon123449
Code:
<?
$pa = $_GET["pa"];
if ($pa == null)
{
include "news.php";
} else {
include "$pa.php";
}
?>
if(isset($_GET['pa'])){
require("news.php");
}
else
{
if(!isset($_GET['pa'])){
session_destroy();
header('Location: index.php');
}
}
}
not even going to tell you whats wrong with that but if you noticed this was necro bumped