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
[Back to original message]
|