Nope that doesn't work either.
My PHP page looks like this:
<?php
include_once("Valideer.inc");
print('hello');
include_once("EindeValideer.inc");
?>
Valideer.inc
<?php
session_register(GoedGekeurd);
if($_SESSION("GoedGekeurd" > 1){
?>
EindeValideer.inc
<?
}else{
print("<html>");
print("<head><title>Fout boodschap.</title><script language=\"javascript\">setTimeout(\"top.location.href = 'http://HomeTraining/Login.php)'\",2000); </script></head>");
print("<body bgcolor=\"#c1d5ca\">")
print("<table height=\"100%\" width=\"100%\">");
print("<tbody>");
print("<tr>");
print("<td align=\"middle\">");
print("You are not authorized to view this web-page.");
print("</td></tr></tbody></table></body></html>");
}
?>
As you probably notice i want to put the Valideer.inc on the beginning of my page and the EindeValideer.inc on the end of my page. So they can control security. Problem is both files give an error cause they both are parsed seperatly. Anybody got a solution.
And sorry for the probably tons of typo's, i'm Dutch speaking.
TIA