Re: PHP and Frames?

From: Date: Mon, 29 Nov 2004 23:46:58 +0000
Subject: Re: PHP and Frames?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-203107@lists.php.net to get a copy of this message
----- Original Message ----- From: "M. Sokolewicz" <tularis@php.net> To: <php-general@lists.php.net> Sent: Monday, November 29, 2004 6:34 PM Subject: Re: [PHP] PHP and Frames?
Jake McHenry wrote:
----- Original Message ----- From: "Chris W. Parker" <cparker@swatgear.com> To: "Jake McHenry" <linux@nittanytravel.com>; <php-general@lists.php.net> Sent: Monday, November 29, 2004 6:26 PM Subject: RE: [PHP] PHP and Frames?
Jake McHenry <mailto:linux@nittanytravel.com> on Monday, November 29, 2004 2:41 PM said:
Was just wondering if it is possible to create dynamic frames within a page. Like have 3 output sequences, one for frame source, then 2 for actual pages?
Frames and PHP are not interdependent on eachother. Each frame within the frameset can be a PHP page if you need them to be.
Or do frames have to have an actual page to load?
I'm sorry but I don't understand what you mean by "an actual page to load". A frame within a frameset can load anything the regular browser window can load. Also, since this is not really PHP related (unless I'm missing the point) you might like to try an a general web design list instead. Or you could email me off list. Chris.
Right now I only have 1 php file, which is outputing all of the html. Is there a way I can have that 1 php file output the frame source page, along with the links, header, and target page? As I said, I could have the php file output the html to the actual files, but is there a way I have have all this in 1 php file? That's what I'm asking I guess.... Thanks, Jake McHenry Nittany Travel MIS Coordinator http://www.nittanytravel.com (570) 748-6611 x108
sure, but you'd need to somehow distinguis between situations. The easiest would be using a GET var. eg: <frameset src="page.php?id=top"><frameset src="page.php?id=left"> and in the page.php: switch($_GET['id']) { case 'top': // html for top break; case 'left': // html for left break; } etc. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
ok, this helps on what I just emailed.. missed this... I'll try it and let you know. Thanks, Jake McHenry Nittany Travel MIS Coordinator http://www.nittanytravel.com (570) 748-6611 x108

« previous php.general (#203107) next »