Originally posted by Zack
<table background="<?php include(image.php); ?>">
this would do if image.php contains nothing but the path to an image, e.g. images/myjpg.gif or similar.
if you include a file it will be placed at that point where the include was set. but that you've already found out on your own 😉
what you are trying to do is no question of php, but of html.
using divs and formatting them with css is the easiest way...
page1.php:
<html>
<head></head>
<link rel="stylesheet" href="mysheet.css" type="text/css">
<body>
<div id="back">
<? include("image.php"); ?>
</div>
<div id="front">
<? include("submitform.htm"); ?>
</div>
</body>
</html>
mysheet.css could look like this:
#back{
position: absolute;
top: 100;
left: 100;
width: 300;
height: 300;
overflow: auto;
}
#front {
position: absolute;
top: 100;
left: 100;
width: 300;
height: 300;
overflow: auto;
}