Re: PHP and Frames?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jake McHenry wrote:

----- Original Message ----- From: "Chris W. Parker" <cparker@xxxxxxxxxxxx>
To: "Jake McHenry" <linux@xxxxxxxxxxxxxxxxx>; <php-general@xxxxxxxxxxxxx>
Sent: Monday, November 29, 2004 6:26 PM
Subject: RE:  PHP and Frames?


Jake McHenry <mailto:linux@xxxxxxxxxxxxxxxxx>
   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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux