Foros del Web » Creando para Internet » HTML »

Problemas con validar W3C

Estas en el tema de Problemas con validar W3C en el foro de HTML en Foros del Web. Hola mi duda es la siguiente tengo una pagina que requiere autentificador de usuarios en php cuando trato de validarla me dan los siguientes errores: ...
  #1 (permalink)  
Antiguo 17/04/2009, 00:22
 
Fecha de Ingreso: septiembre-2007
Mensajes: 73
Antigüedad: 16 años, 7 meses
Puntos: 0
Problemas con validar W3C

Hola mi duda es la siguiente tengo una pagina que requiere autentificador de usuarios en php cuando trato de validarla me dan los siguientes errores:

No Character Encoding Found! Falling back to UTF-8.

None of the standards sources gave any information on the character encoding labeling for this document. Without encoding information it is impossible to reliably validate the document. As a fallback solution, the "UTF-8" encoding was used to read the content and attempt to perform the validation, but this is likely to fail for all non-trivial documents.

Read the FAQ entry on character encoding for more details and pointers on how to fix this problem with your document.

Unable to Determine Parse Mode!

The validator can process documents either as XML (for document types such as XHTML, SVG, etc.) or SGML (for HTML 4.01 and prior versions). For this document, the information available was not sufficient to determine the parsing mode unambiguously, because:

the MIME Media Type (text/html) can be used for XML or SGML document types
No known Document Type could be detected
No XML declaration (e.g <?xml version="1.0"?>) could be found at the beginning of the document.
No XML namespace (e.g <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">) could be found at the root of the document.
As a default, the validator is falling back to SGML mode.

No Character encoding declared at document level

No character encoding information was found within the document, either in an HTML meta element or an XML declaration. It is often recommended to declare the character encoding in the document itself, especially if there is a chance that the document will be read from or saved to disk, CD, etc.

See this tutorial on character encoding for techniques and explanations.

↑ Top

Validation Output: 2 Errors
Line 1, Column 1: character "E" not allowed in prolog
Error cod.: 2 - Acceso incorrecto!✉
Line 1, Column 35: end of document in prolog
Error cod.: 2 - Acceso incorrec…✉

Este es el código de la página talvez me puedan a ayudar a solucionarlo

Código PHP:
// Autenticación - Activa 
require("aut_verifica.inc.php"); 

// Nivel de acceso - Inicializa 
$nivel_acceso=10;  
if (
$nivel_acceso $_SESSION['usuario_nivel']){ 
    
header ("Location: $redir?error_login=5"); 
    exit; 

// iniciamos sesiones 
session_start(); 
//nombre del usuario 
$sesion_ideusu=$_SESSION['usuario_login']; 

// Configuración - Carga 
require ("aut_config.inc.php");  

// Variable pag - Incializa nombre página actual 
$pag=$_SERVER['PHP_SELF']; 

Código HTML:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>::SASS:: Sistema de Administraci&oacute;n de Solicitudes de Servicio</title>
    <link rel="stylesheet" type="text/css" href="css/style.css">
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
	<script type="text/javascript">
    function mOvr(src,clrOver) {
		if (!src.contains(event.fromElement)) {
		src.style.cursor = 'hand';
		src.bgColor = clrOver;
		}
    }
    function mOut(src,clrIn) {
		if (!src.contains(event.toElement)) {
		src.style.cursor = 'default';
		src.bgColor = clrIn;
		}
    }
    function mClk(src) {
		if(event.srcElement.tagName=='TD'){
		src.children.tags('A')[0].click();
		}
    }
    </script>    
</head>
<body>
</body>
</html> 
  #2 (permalink)  
Antiguo 17/04/2009, 14:09
Avatar de gVenom  
Fecha de Ingreso: julio-2008
Ubicación: Costa Rica
Mensajes: 1.458
Antigüedad: 15 años, 9 meses
Puntos: 53
Respuesta: Problemas con validar W3C

no entiendo algo, tu codigo php no esta en la página que cargas abajo, cual es el error?

el html esta limpio y el php, si no esta incluido pues no se.
__________________
"Al que venciere y guardare mis obras hasta el fin, yo le daré autoridad sobre las naciones."
Apocalipsis 2: 26
Servicios para Pymes http://dst.co.cr
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 21:19.