Posted by www.j2be.com on 01/01/08 13:35
"Zach" <xx@xx.xx> ha scritto nel messaggio
news:47790757$0$24413$5fc3050@news.tiscali.nl...
>
> The code below should redirect the user to another page, but doesn't. What
> is wrong?
> Zach
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head>
> <meta http-equiv="content-type" content="text/html; charset=utf-8" />
> <title>Under reconstruction</title>
> </head>
> <body>
> <?php
> // Redirect the user to the welcome page!
> header ('Location: www.aaa.yy/index.html/');
> exit();
> ?>
> </body>
> </html>
The header ('Location: www.aaa.yy/index.html/'); must be on the top of all
the code before any output.
You can use a meta refresh in the html to redirect without fancy headers.
Navigation:
[Reply to this message]
|