このコードindex3.phpとdiv
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>JS Change Class</title>
<script language="JavaScript" src="js/adspreview.js"type="text/javascript" xml:space="preserve"></script>
<div id="container">
<td><?php include("test.php"); ?>
</div>
</html>
ここで、index3.php内で実行したいコード
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Test</title>
</head>
<body>
<table border="1" width="100%">
<tr>
<td bgcolor="#0000FF" colspan="2">
<p align="center"><font color="#FFFFFF" face="Arial"><b>Test</b></font></td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</table>
</body>
</html>
試してみてください、私はこれについて混乱しています。ご協力ありがとうございました。