Ciao Corwin86 credevi fosse finita così ..... ?!!!?!?

Ti posto i tre file .php che stò usando ..... non riesco a trovare una soluzione,
ho fatto tutti i tentativi possibili pure applicando della varianti del tipo:

$titolo2 = basename($_SERVER['SCRIPT_NAME']);

oppure

$titolo2 = __FILE__;

e quella consigliata da te

$titolo2 = $_SERVER['PHP_SELF'];



La tabella continua a rimanere nascosta, sicuramente c'è qualche cosa di base che non riesco a far funzionare nella maniera giusta.

Ancora grazie per la tua pazzienza.




menu.php
codice:
<!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>Documento senza titolo</title> 
</head>  

<body> 
<table width="300" border="1">   
<tr>     
<td bgcolor="#FFFF00">Titolo 1</td>   
</tr> 
</table> 

<table width="300" border="1">   
<tr>     
<td bgcolor="#66FF33">Titolo 2</td>
</tr> 
</table>  

<?php 
$titolo_1 = basename($_SERVER['PHP_SELF']); 
$titolo_2 = array('progetti.php');

if ($titolo_1 == $titolo_2) {  
echo "<table width=\"100%\" border=\"1\">
         <tr>
         <td bgcolor=\"#990000\">Sottotitolo 2 </td>           
         </tr>
         </table>";
          } 
?>

<table width="300" border="1">
<tr>
<td bgcolor="#FF99CC">Titolo 3</td>
</tr>
</table>


</body>
</html>

home.php
codice:
<!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>titolo 1</title> 
</head>  

<body> 
<table width="100%" border="1">   
<tr>     
<td bgcolor="#CCCCCC">
<?php include $_SERVER['DOCUMENT_ROOT']."/prova/menu.php"; ?></td>     
<td bgcolor="#CCFF99">testo</td>   
</tr> 
</table> 

</body> 
</html>



progetti.php
codice:
<!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>titolo 2</title> 
</head>  

<body> 
<table width="100%" border="1">   
<tr>     
<td bgcolor="#CCCCCC">
<?php include $_SERVER['DOCUMENT_ROOT']."/prova/menu.php"; ?></td>     
<td bgcolor="#CCFF99">testo</td>   
</tr> 
</table> 

</body> 
</html>

In pratica la tabella si deve vedere solo nella pagina progetti e non nella home, ma questo già lo sai.....
ciao e buona giornata.