Warning: Cannot modify header information
I've been getting the following error message when attempting to log in on a site I am working on:
Warning: Cannot modify header information - headers already sent by (output started at /home/mysite/public_html/np/index.php:8) in /home/mysite/public_html/np/login.php on line 19
I have researched the message, and it appears that it usually results from having a space or end of line character at the end of any php closing tags. I've checked my code many times and I can't seem to find any problems. Perhaps someone could tell me what I am doing wrong.
<html>
<head>
<link href="samples.css" rel="stylesheet" type="text/css">
</head>
<body>
<table border="0" >
<tr valign="top">
<td width="15%"><table cellspacing="0" cellpadding="5"><tr valign="top"><td class="style1"><?php include("login.php"); ?></td></tr></table></td>
<td width="85%"><table cellspacing="0" cellpadding="5"><tr valign="top"><td><?php include("register.php"); ?></td></tr></table></td>
</tr>
</table>
</body>
</html>
The error occurs when I attempt to set a cookie in my login.php file. Whenever I log in directly from the login.php page, everything works perfectly. However, any time that I attempt to login through the index.php page I get the above error. I appreciate any help in advance!

