Forum Moderators: coopster
function redirect($url) {
if(headers_sent()) {
?>
<html><head>
<script language="javascript" type="text/javascript">
<!--
window.self.location='<?php print($url);?>';
//-->
</script>
</head></html>
<?
exit;
} else {
header("Location: ".$url);
exit;
}
}
Checks if headers are sent, javascript is used instead to do the redirection...