Re: Using Php code in index.html
| From: | Andy Hoffman | Date: | Wed, 22 Nov 2000 16:58:10 +0000 |
| Subject: | Re: Using Php code in index.html | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-4058@lists.php.net to get a copy of this message | ||
Robin Bolton wrote:
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html;
> charset=iso-8859-1">
> <meta http-equiv="refresh" content="0;URL=index.php">
> </head>
> </html>
>
> That will automatically forward the user to your index.php file.
Or you can use this bit of Javascript in the header of index.html (though JS
can be turned off by the user)...
<script>
document.location.replace("index.php");
</script>
This will make sure that index.html ISN'T placed on the user's browser history,
a big pet peeve of mine on "auto-jumping" pages. You hit the "Back" button,
and the browser keeps jumping forward ;P
--
Andy Hoffman
Web Developer
Bristol-Myers Squibb
email: andy.hoffman@bms.com