Re: frames and variables

From: Date: Thu, 15 Aug 2002 14:59:28 +0000
Subject: Re: frames and variables
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-112768@lists.php.net to get a copy of this message
Yes, Javascript is the most common way of doing this. The alternative is to submit the variable back to the main PHP document (whatever created the Frames in the first place) and regenerate the entire screen (frameset and all). The script can then pass the variables on in the <FRAME> tags. It ain't pretty, but no Javascript is required. As you may be starting to guess, this is why many people have quit using Frames. At first, they seem like a great idea. But the more you use them, the more difficult you find them to be. In the end, many people would rather give up the advantages of Frames in return for the increased simplicity of generating the pages. --- Seairth Jacobs seairth@seairth.com <victor@argilent.com> wrote in message news:000001c24415$8155a1b0$86a96518@jumpy... > Has anyone here designed php sites that use a combination of php pages > and html pages? > > What I want to know is how to pass a variable from nav_frame.php (at the > top) to itself, AND to the data.php frame (lower frame, main body) > > I can pass variables to itself, (with the "?page_name=content.htm" > thingie attached to links, but I don't know how to make this accessible > to both frames at the same time. > Help appreciated, yes, I'm asking a lot of questions since this is a > project for college and my due data is in 2 ... ooops 1 DAY! WhooHOO! > > - Vic > > > > ______________________________________________________________________ > Post your ad for free now! http://personals.yahoo.ca

« previous php.general (#112768) next »