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]
|