I have a header to check where the individual is coming from before they proceed.
the page has a *.wmv embedded. for some reason, when this page connects the user to my page with the header, the header says it is not coming from and redirects the user to the 404.html page.
however if the user comes from Question_1.php, it loads exactly as it is supposed to.
is there a problem with pages including a *.wmv file not sending a header properly?
we also have some javascript code to test when the video is done, could that throw off the header? here's the javascript:
Code:
<?php
if($_SERVER['HTTP_REFERER'] != "[URL unfurl="true"]http://www.mysite.com/Question_1.php"[/URL] && $_SERVER['HTTP_REFERER'] != "[URL unfurl="true"]http://www.mysite.com/Question_2_correct.html"){[/URL]
header("Location: [URL unfurl="true"]http://www.mysite.com/404.html");[/URL]
}
?>
the page has a *.wmv embedded. for some reason, when this page connects the user to my page with the header, the header says it is not coming from and redirects the user to the 404.html page.
however if the user comes from Question_1.php, it loads exactly as it is supposed to.
is there a problem with pages including a *.wmv file not sending a header properly?
we also have some javascript code to test when the video is done, could that throw off the header? here's the javascript:
Code:
function teststatus()
{
if (0 == MediaPlayer1.playState)
move();
timer = setTimeout ('teststatus()', 3000);
}
function move() {
window.location = 'Question_2.php'
}