Problem with include or require...
Hi to all i've a problem with variables and include or require function...
I have a page index.php:
Code:
<?php
require_once('Connections/feeling.php');
require('index1.htm');
?>
the code for the page index.htm:
Code:
<!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=iso-8859-1" />
<link href="css/stile.css" rel="stylesheet" type="text/css" />
<?php $sez = 1; ?>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="350"><? require('menu2.php');?></td>
</tr>
</table></td>
<td class="td-10px"> </td>
<td><? include('central_bound.php');?> </td>
<td class="td-10px"> </td>
<td class="td-300px"><? require('visual_menu.php');?></td>
</tr>
</table</body>
</html>
as you see i've included another time <? include('central_bound.php');?> into the page index1.htm
the page central_bound.php as code:
Code:
<?php if ( $sez === 1){
echo'
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="testo-di-navigazione">--Community News </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><iframe src="news.php" width="440" height="350" frameborder="0"> </iframe>
</td>
</tr>
</table>';
}else{
echo "HI TO ALL";
}
?>
i have a problem to see the variable $size it check the condition but he show only HI TO ALL instead of the i frame with the page news.php....