Por ejemplo: el boton colores (por poner algun ejemplo) tendra este vinculo:
Código HTML:
a href="index.php?accion=colores"
una parte del codigo donde quiero generar esto es esta:
</head>
<?php if($accion == "colores")
{
$incluir=include("colores.php");
}
?>
<body>
<div align="center">
<table width="751" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td height="127" colspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="751" height="127" valign="top"><img src="images/banner.jpg" width="751" height="127"></td>
</tr>
</table></td>
</tr>
<tr>
<td width="186" height="248" valign="top"><?php include("menu.php"); ?></td>
<td width="566" rowspan="2" valign="top"><?php include($incluir); ?> //aqui es donde quiero incluir los diferentes archivos
</td>
</tr>
q estoy haciendo mal?