Ver Mensaje Individual
  #3 (permalink)  
Antiguo 02/08/2009, 09:21
Avatar de murderer
murderer
 
Fecha de Ingreso: marzo-2009
Ubicación: Argentina/Misiones/Iguazu/Localhost
Mensajes: 196
Antigüedad: 15 años, 1 mes
Puntos: 2
Respuesta: Un Include me tira error en el W3C Validator

Hola gjx2,

Aca traigo el documento principal:
Código HTML:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="shortcut icon" href="img/favicon.ico" />
<title>Forest Rent a Car - Alquiler de autos en Iguazu </title>
<link href="estilos.css" rel="stylesheet" type="text/css" />
</head>
<body>
 <div class="fondo">
  <div class="fondotop"></div>
  <div class="contenedor">
   <div class="contenedortop"></div>
    <div class="header"><?php include'header.php'; echo $sec ; ?></div>
    <div class="mainbox">
    <p>Texto</p>
    </div> 
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <div class="contenedorbottom"></div>
  </div>
 <div class="fondobottom"></div>
</div>
</body>
</html> 
Nota: inclui la etiqueta de Html y el doctype sólo que no me lo deja poner por spam .


...y aca la página del script:

Código PHP:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin t&iacute;tulo</title>
<link href="/estilos.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?php

$img
[] = '<img src="img/header/header.png" alt="header" />';   
$img[] = '<img src="img/header/header2.png" alt="header" />'
$img[] = '<img src="img/header/header3.png" alt="header" />'
$img[] = '<img src="img/header/header4.png" alt="header" />'

$random mt_rand(03);

$sec $img[$random];


?>
</body>
</html>

Si entran a paginasdeprueba.comunidad-misiones.com, van a poder ver todo el código.

Saludos!