Ver Mensaje Individual
  #5 (permalink)  
Antiguo 02/08/2009, 10:12
Avatar de gjx2
gjx2
 
Fecha de Ingreso: agosto-2008
Ubicación: R.D
Mensajes: 1.153
Antigüedad: 15 años, 8 meses
Puntos: 139
Respuesta: Un Include me tira error en el W3C Validator

Perdona , he podido ver el html detenidamente

Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  5. <link rel="shortcut icon" href="img/favicon.ico" />
  6. <title>Alquiler de autos en Iguazu - Forest Rent a Car</title>
  7. <link href="estilos.css" rel="stylesheet" type="text/css" />
  8. </head>
  9. <body>
  10.  <div class="fondo">
  11.   <div class="fondotop"></div>
  12.   <div class="contenedor">
  13.    <div class="contenedortop"></div>
  14.     <div class="header"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  15. <html xmlns="http://www.w3.org/1999/xhtml">
  16. <head>
  17. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  18. <title>Documento sin t&iacute;tulo</title>
  19. <link href="/estilos.css" rel="stylesheet" type="text/css" />
  20. </head>  
  21. <body>  <!-- En esta parte abres el body -->
  22. </body> <!-- Pero aqui lo cierras  -->
  23. </html>  <!-- Y aqui cierras el documento -->
  24. <img src="img/header/header4.png" alt="header" /></div>
  25.     <div class="mainbox">
  26.     <p>Texto</p>
  27.     </div>
  28.     <p>&nbsp;</p>
  29.     <p>&nbsp;</p>
  30.     <p>&nbsp;</p>
  31.     <p>&nbsp;</p>
  32.     <p>&nbsp;</p>
  33.     <p>&nbsp;</p>
  34.     <p>&nbsp;</p>
  35.     <p>&nbsp;</p>
  36.     <p>&nbsp;</p>
  37.     <p>&nbsp;</p>
  38.     <p>&nbsp;</p>
  39.     <div class="contenedorbottom"></div>
  40.   </div>
  41.  <div class="fondobottom"></div>
  42. </div>
  43. </body>
  44. </html>

Como te dije al archivo que contiene el script solo dejale

Código PHP:
Ver original
  1. <?php
  2.  
  3. $img[] = '<img src="img/header/header.png" alt="header" />';    
  4. $img[] = '<img src="img/header/header2.png" alt="header" />';  
  5. $img[] = '<img src="img/header/header3.png" alt="header" />';  
  6. $img[] = '<img src="img/header/header4.png" alt="header" />';  
  7.  
  8. $random = mt_rand(0, 3);
  9.  
  10. $sec = $img[$random];
  11.  
  12.  
  13. ?>

Y te aseguro que la validacion sera correcta.