You are here: Re: What is wrong? « PHP Language « IT news, forums, messages
Re: What is wrong?

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация