PDA

View Full Version : php in Layers



athoughtbytim
November 12th, 2007, 02:15 PM
Hi,

Anyone know why php doesn't work in layers? Do I need a prefix to activate it or something (new at PHP)?
--tim

Yeldarb
November 12th, 2007, 03:19 PM
What is Layers?

chacelp
November 12th, 2007, 03:28 PM
^ Don't know what layers are either...

athoughtbytim
November 12th, 2007, 04:33 PM
in Dreamweaver you can add layers that basically float over where ever you want it to on the page. pretty awesome.
I figured it out. you have to make it a php file that still uses the html to post it.
I got the "div id" tag to work and then apply the placement of that layer in css
but now I need to find out how to load an external php file into a layer in a html file if you all know a easy way to do it let me know.
--timbo

simplistik
November 13th, 2007, 09:13 AM
layers is just a term for floating divs one on top of another. they're nothing special at all, nothing unique and shouldn't be treated any differently than any other object in html. so if you want to include an external file into the div all you need to do is



<div>
<?php include("file.php"); ?>
</div>

athoughtbytim
November 14th, 2007, 02:53 PM
pretty easy. thanks!
--timbo

layers is just a term for floating divs one on top of another. they're nothing special at all, nothing unique and shouldn't be treated any differently than any other object in html. so if you want to include an external file into the div all you need to do is



<div>
<?php include("file.php"); ?>
</div>