Hello,
if($_POST['pageName']=='hotSearch')
{
$html = preg_replace("'<table[>]?>.?</table>'si","",$html,'1');
$html = preg_replace ("'<html>.?<body[>]?>'si",require('../design/includes/header2.html'),$html);
}
else
{
$html = preg_replace("'<table[>]?>.?</table>'si","",$html,'1');
//$header = require ('header.html');
//$header .= require ('../design/includes/header2.html');
$html = preg_replace ("'<html>.?<body[>]?>'si",$header,$html);
}
echo $html;
In the IF conditoin, the require statement causes a 1 to be printed onto the screen and then the contents of html.
However, if i copied everything and just placed it inside with "myinformatoinhere" then it prints just the way before but without the 1 .
in the else, I have the same problem, it prints twice 11 and then my contents.
How do i get rid of those 1 and 11
Thanks.