Hey, i have had errors whilst using header() before and been able to solve them easily enough but now i've got one i just cant figure out.
I am using:
if (!$result) {
echo "<div align='center'>Error editing post<br><br><a href='javascript:history.go(-1)'>Go Back</a></div>";
}else{
header("location:ForumReplies?threadid=".$threadid);
exit();
}
and getting the error:
Warning: Cannot modify header information - headers already sent by (output started at /home/virtual/site13/fst/var/www/html/ForumAddEdit.php:26) in /home/virtual/site13/fst/var/www/html/ForumAddEdit.php on line 55
Yet, line 26 is just html code for a table, nothing to do with headers. Anyway, i've made sure there is no white space or anything before or after the <?php and ?> but i just cant figure out why i'm getting the error :-S If anyones got any suggestions i'd be very grateful. cheers, BIOSTALL
btw, if you want me to post more code, just ask 🙂