I am building a web application.
Each page will call a function that will display the html header for that page. Problem is it will display the tag '?>' before displaying the header.
the function code:
<?php
function do_html_header($title)
{
?>
<html>
<head>
<title><?php echo $title;?></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="css/mystyle.css">
..........................
<table width="770" border="0">
<tr>
<td colspan="2" class="logo"><img src="images/epheader2.gif"></td>
</tr>
</table>
<?php
}
?>
The calling page:
<?php
require_once('display_fns.php');
do_html_header(':: HOME PAGE');
.......................
...................
?>
What is the problem.