including a file in another frame

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • julian_m

    including a file in another frame

    I've the following code:

    mainpage.php
    ----------------------------
    <FRAME name="framesupe rior" src="framesuper ior.php?a_calle r=inicio">
    <FRAME name="framecata logo" src="frameinfer ior.php?a_calle r=inicio">
    ----------------------------



    framesuperior.p hp
    ----------------------------
    $a_caller = $_GET['a_caller'];
    $a_dhn = $_GET['a_dhn'];


    if ($a_caller=="me nuprincipal"){ //this file could be called from
    another files
    include("menuse cundario.php"); //this line will update
    framesuperior.p hp
    ***** Here I need to include "file.php" but in "framecatal ogo"
    frame

    }

    I don't know how can I achieve what I need in *****
    Any advice?


    reards - jm

  • Kristofer

    #2
    Re: including a file in another frame

    julian_m wrote:[color=blue]
    > I've the following code:
    >
    > mainpage.php
    > ----------------------------
    > <FRAME name="framesupe rior" src="framesuper ior.php?a_calle r=inicio">
    > <FRAME name="framecata logo" src="frameinfer ior.php?a_calle r=inicio">
    > ----------------------------
    >
    > framesuperior.p hp
    > ----------------------------
    > $a_caller = $_GET['a_caller'];
    > $a_dhn = $_GET['a_dhn'];
    >
    >
    > if ($a_caller=="me nuprincipal"){ //this file could be called from
    > another files
    > include("menuse cundario.php"); //this line will update
    > framesuperior.p hp
    > ***** Here I need to include "file.php" but in "framecatal ogo"
    > frame
    >
    > }
    >
    > I don't know how can I achieve what I need in *****
    > Any advice?[/color]

    Why not change your FRAME tag to be something like

    <FRAME name="framecata logo"
    src="frameinfer ior.php?a_calle r=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

    Comment

    Working...