I'm looking for a script that will find the URL of the last viewed page and then go to that page showing all new information (refresh). I'm using this script for a post.php page on a forum. Where you would submit a post and then you would be taken to a page that would then take you to the original page, but it would show your post and anything else that changed during that time.
This is what I am using right now, but it doesn't work. When I go to the post page, it simply refreshes the post page after 3 seconds.
<script language="javascript">
window.setTimeout("location.href='<?php echo($_SERVER["REFERER"]);?>'",3000);
</script>
Thanks,
DF