You are here: Re: [PHP] HEADER + target? « PHP « IT news, forums, messages
Re: [PHP] HEADER + target?

Posted by "Gustav Wiberg" on 09/19/05 11:52

----- Original Message -----
From: "Jasper Bryant-Greene" <jasper@bryant-greene.name>
To: "PHP General" <php-general@lists.php.net>
Sent: Monday, September 19, 2005 10:31 AM
Subject: Re: [PHP] HEADER + target?


> Gustav Wiberg wrote:
>> I think this question has been on the list before, but I can't find it.
>> I want to do like this:
>>
>> <script language="Javascript">
>> parent.mainFrame.location = 'fire.php';
>> </script>
>>
>> ...but in PHP with the HEADER() - function...
>
> Not that hard to find... http://php.net/header
>
> header('Location: http://www.example.com/fire.php');
>
> You should put the full URI, including http:// and your domain. Not doing
> so violates the HTTP spec.
>
> If you want to signal that the resource has permanently moved, put this
> before the above call:
>
> header('HTTP/1.1 301 Moved Permanently');
>
> --
> Jasper Bryant-Greene
> Freelance web developer
> http://jasper.bryant-greene.name/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.344 / Virus Database: 267.11.1/104 - Release Date: 2005-09-16
>

Hi again!

I wasn't clear enough.. hm.. I meant that lets say, I have two frames =
leftFrame and rightFrame.

I'm in leftFrame and want to redirect to a page called fire.php in the
rightFrame.
If I use HEADER("Location: fire.phg"); then the current frame will be
updated (leftFrame), I want to update the rightFrame FROM the leftFrame...

/G
http://www.varupiraten.se/

 

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

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