You are here: Re: automatically loading a new page in a frame. « PHP Programming Language « IT news, forums, messages
Re: automatically loading a new page in a frame.

Posted by Rik on 01/29/07 23:41

McGowan <Boomer84@gmail.com> wrote:
> On Jan 29, 10:43 pm, Rik <luiheidsgoe...@hotmail.com> wrote:
>> McGowan <Boome...@gmail.com> wrote:
>> > the basic idea here is that I want a web page that is made up of
>> > frames to redirect automatically to a frame depending on an if
>> > statement...
>>
>> > if($1 =3D=3D $2)
>> > {
>> > load url1.php in frame "main"
>> > }else
>> > {
>> > load url2.php in frame "main"
>> > }
>> > The frame "main" is an <iframe> if that makes a difference.It all =

>> depends on where $1 & $2 are coming from. If it's server-side, a
>> simple if statement and an echo()ed src attribute is all it takes.
>>
> maybe I should have been clearer. I just need a line of code that will=

> automatically load a specific page in a specific frame.
>
> I'm not sure what you mean by an echo()ed src attribute?

Euhm? Does not make it clearer.

Here's what I can make of it with your info:

print '<iframe src=3D"'.(($foo =3D $bar) ? 'url1.php' : 'url2.php' ).'">=
';
-- =

Rik Wasmus

 

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

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