Ver Mensaje Individual
  #7 (permalink)  
Antiguo 15/09/2008, 02:33
TuWebDesde200Euros
 
Fecha de Ingreso: septiembre-2008
Mensajes: 5
Antigüedad: 15 años, 7 meses
Puntos: 0
Respuesta: por favor Ayudennnn con este codigo

Cita:
<html>
<head>
<title>Web Modular</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<table width="100%" border="0" cellpadding="5">
<tr>
<td colspan="2">Cabecera de nuestra Web</td>
</tr>
<tr>
<td><a href="index.php?id=1">Secci&oacute;n 1</a><br>
<a href="index.php?id=2">Seccion 2 </a> </td>
<td>
<?
$Catalogo=$_GET['Catalogo'];

switch ($Catalogo) {
case "ropa":
include("ropa.php");
break;
}
?>
</td>
</tr>
<tr>
<td colspan="2">Pie de p&aacute;gina</td>
</tr>
</table>
</body>
</html>
En el ropa.php meterías algo similar:

<?
$producto=$_GET['producto'];

switch ($producto) {
case "pantalones":
include("pantalones.php");
break;
}
?>

Así, pero procura, cuando recoges variables de $_GET y $_POST limpiar el contenido para que no te metan nada.

Un saludo.

-----

Tu Web Desde 200 Euros!!
http://wwwTuWebDesde200Euros.com