Changes 1.5 to 1.6 ============================ myevent.php $template = new Template('templates/') ; insert $_SERVER['SCRIPT_NAME'] = $path; $path = preg_replace($html_entities_match, $html_entities_replace, $path); $_SERVER['PHP_SELF']=$path; ================================================ login.php after include "./config.php"; insert $_SERVER['SCRIPT_NAME'] = $path; $path = preg_replace($html_entities_match, $html_entities_replace, $path); $_SERVER['PHP_SELF']=$path; ================================================ config.php $version =1.5; change to $version =1.6; line 35 insert $html_entities_match = array('#&(?!(\#[0-9]+;))#', '#<#', '#>#'); $html_entities_replace = array('&', '<', '>');