including a file in another frame

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I've the following code:

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

$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
      ***** Here I need to include "file.php" but in "framecatalogo"


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

reards - jm

Re: including a file in another frame

julian_m wrote:
Quoted text here. Click to load it

Why not change your FRAME tag to be something like

<FRAME name="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..


Site Timeline