Reply to Re: including a file in another frame

Your name:

Reply:


Posted by Kristofer on 08/10/05 18:44

julian_m wrote:
> I've the following code:
>
> mainpage.php
> ----------------------------
> <FRAME name="framesuperior" src="framesuperior.php?a_caller=inicio">
> <FRAME name="framecatalogo" src="frameinferior.php?a_caller=inicio">
> ----------------------------
>
> framesuperior.php
> ----------------------------
> $a_caller = $_GET['a_caller'];
> $a_dhn = $_GET['a_dhn'];
>
>
> if ($a_caller=="menuprincipal"){ //this file could be called from
> another files
> include("menusecundario.php"); //this line will update
> framesuperior.php
> ***** Here I need to include "file.php" but in "framecatalogo"
> frame
>
> }
>
> I don't know how can I achieve what I need in *****
> Any advice?

Why not change your FRAME tag to be something like

<FRAME name="framecatalogo"
src="frameinferior.php?a_caller=inicio&frame=framecatalogo">

And then you can add a
$frame = $_GET['frame']

to know what frame you are in, and have an if() statement check on that,
and include() as needed..

Kristofer

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

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