Ver Mensaje Individual
  #5 (permalink)  
Antiguo 09/10/2006, 19:38
chuwanet
 
Fecha de Ingreso: diciembre-2004
Mensajes: 49
Antigüedad: 19 años, 4 meses
Puntos: 0
Ahi va yo traté de implementar eso pero no funca... les muestro mi code

<?php

$comilla="'";

$titulo_page = 'Thinkin Point';

$description_page = 'Diseño - Programaci&iacute;n.blablablalba';

$page = "";
$box_page = "main.php";

if (isset($_GET['page']))

$page = $_GET['page'];
{
if ($page == '') {

$box_page = 'main.php';

} if ($page == 'clientes') {

$box_page = 'clientes.php';

} elseif ($page == 'contacto') {

$box_page = 'contacto.php';

} elseif ($page == 'empresa') {

$box_page = 'empresa.php';

} elseif ($page == 'novedades') {

$box_page = 'novedades.php';

} elseif ($page == 'productos') {

$box_page = 'productos.php';

} elseif ($page == 'servicios') {

$box_page = 'servicios.php';}

}
?>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title><?php echo $titulo_page; ?></title>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>

<body>
<table align="center" style="width:775px;" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="header"><?php include_once ('header.php'); ?></td>
</tr>
<tr>
<td><?php include_once ('buttons.php'); ?></td>
</tr>
<tr>
<td><!--<img src="images/temp.jpg" /> -->

<?php include_once($box_page); ?> </td>
</tr>
<tr>
<td><?php include_once ('footer.php'); ?></td>
</tr>
</table>
</body>
</html>


me anda cuando arranca, osea le hace el include a main, pero cuando en la dirección le escribo algo como "/?page=contacto" no me funca,

denuevo muchas gracias