This code is in between some other code. Whatever I do, it still does not redirect using header or javascript. What am I missing here?????
FYI, I have output_buffering turned on in my php configuration file.
the function mymonitor just return the num rows returned from a query. Everything works except the redirect. I have header commented out because I was also trying a java redirect.
Code: Select all
if ( isset($_REQUEST['reset']) ) {
$reset = $_REQUEST['reset'];
if( mymonitor($reset) == 0 ) {
error_message("You cannot edit a monitor you do not own");
}
resetsendmessages($reset);
resetattempts($reset);
resetnotified($reset);
//header("Location http://www.icameradb.com");
?>
<script language="JavaScript" type="text/javascript">
<!-- window.location.href = "http://www.icameradb.com" //-->
</script>
<?
}