irishgirl2004 wrote:
include "headers.inc";
Print_header ();
and in the headers.inc fil i have
function Print_header () {
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n";
echo "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">\n";
echo "<head>\n";
echo "\n";
echo "<title>PharmacyOne</title>\n";
}
It would be so much easier to rewrite your header.inc file to:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>PharmacyOne</title>
without escaping it, rename it to header.php , and then just including it, or requiring it as such:
require "header.php";
And be done with it.