Jump to content

how to delay a php redirect with this code...?


svgmx5

Recommended Posts

quick questions..

 

i have this code

 


echo '<p>message of error</p>';

echo"<script type='text/javascript'> window.location='index.php'</script>";

 

and i want to know how could i delay the redirect to index.php for about 5 seconds or so?

 

i've found how to do it using header(); but I've used that before and have gotten alot of errors, which is why i use on javascript to do it for me.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.