You are here: Re: Php Redirect? Or load a new page? « HTML « IT news, forums, messages
Re: Php Redirect? Or load a new page?

Posted by boclair on 09/09/05 02:07

Nonee wrote:
> <?php
> if (empty($_POST["name"]))
> {
> }
> else
> {
> $name=$_POST["name"];
> $filename = $name."/index.php";
> if (file_exists($filename))
> {
> echo "The file $filename does exist Location:
> http://".$_SERVER['HTTP_HOST']."/".$filename;
> header("Location:
> http://".$_SERVER['HTTP_HOST']."/".$filename);
> }
> else
> {
> echo "The file $filename does not exist";
> }
> }
> ?>
>
> Ok, an update. The new location is pointing to the right directory
> but it is still not loading the new page. In addition, it is finding
> the file. It just will NOT relocate to the new location. Grrr....

Do you have errors reported?
http://au3.php.net/error_reporting

Louise

 

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

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