send to another page after sometime
Lets say a user access a certain page (test.php) to take an online test
Id like that after 10 minutes hes accessed this page that he would be redirect to another page saying that his time is up
How can I do that?? I dont want the page to be reloading or anything
I just want the user to access it and after sometime be redirect
[349 byte] By [
rogernem] at [2007-11-19 18:51:20]

# 1 Re: send to another page after sometime
You can use the HTML Meta Refresh 'tag':
<meta http-equiv="refresh" content="60;url= http://www.someurl.com/">
This will redirect the web page to 'www.someurl.com' after 60 seconds.
- petter
# 2 Re: send to another page after sometime
Or using JavaScript...
<script language="JavaScript">
window.setTimeout("window.location=' http://www.google.com'", 600000);
</script>
# 3 Re: send to another page after sometime
Just to note that you need some more validation or security. The person could simply click the back button or disable meta refresh.
degsy at 2007-11-8 0:24:31 >
