validation problem

From: Date: Fri, 12 Feb 2010 10:21:28 +0000
Subject: validation problem
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-7303@lists.php.net to get a copy of this message
Hello, I am french Please can you help and explain to me and perhaps tell me how to resolve this error. I don't understand seeing yours validation explanations on your site and don't see any post in forums about that error. Many thanks Best regards alain saez (aix en provence france) It is a form script for connecting user ( pseudo,password) in a forum.( script runs correctly when I launch it) ---------------------------------------------------------------------------------- HTML Validator 1 error HTML line 21 <input type="hidden" name="page" value="http://localhost/nuspheredebug/projectforum/index.php?DBGSESSID=-1"/> line 21 column 108 - Error: document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "del" start-tag SCRIPT PHP line <input type="hidden" name="page" value="<?php echo htmlspecialchars($_SERVER['HTTP_REFERER']);?>"/> ------------------------------------------------------------------------------------ SCRIPT PHP with an include script debut.php (html head) <?php //Cette fonction doit être placé avant le reste session_start(); $titre = "Connexion";
include("includes/debut.php");                         //   YOU WILL SEE SCRIPT (debut.php) CODE behind.
?> <body> <div id="banniere"></div> <div id="corps_forum"> <a href="./index.php">Index du forum</a> <?php //Par sécurité, on vérifie que le membre qui accède à cette page n'est pas déjà connecté if (isset($_SESSION['pseudo'])) { echo '<p>Désolé, mais vous ne pouvez pas accéder à cette page.</p></div></body></html>'; exit(); } ?> <h1>Connexion</h1> <form method="post" action="connexionok.php"> <fieldset> <legend>Connexion</legend> <p> <label for="pseudo">Pseudo :</label><input name="pseudo" type="text" id="pseudo" /><br /> <label for="password">Mot de Passe :</label><input type="password" name="password" id="password" /><br /> </p> </fieldset> <p><input type="submit" value="Connexion" /></p> <input type="hidden" name="page" value="<?php echo htmlspecialchars($_SERVER['HTTP_REFERER']);?>"/> </form> <a href="./register.php">Pas encore inscrit ?</a> </div> </body> </html> ................................ HERE INCLUDE SCRIPT includes/debut.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" > <head> <?php if (!empty($titre)) //Si le titre est indiqué, on l'affiche entre les balises <title> {
    echo '<title> '.$titre.' </title>';
} else //Sinon, on écrit forum par défaut {
    echo '<title> Forum </title>';
} ?> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" media="screen" type="text/css" title="Design" href="./css/design.css" /> </head> ---------------------------------------------- HTML PAGE SOURCE CODE <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" > <head> <title> Connexion </title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" media="screen" type="text/css" title="Design" href="./css/design.css" /> </head> <body> <div id="banniere"></div> <div id="corps_forum"> <a href="./index.php">Index du forum</a> <h1>Connexion</h1> <form method="post" action="connexionok.php"> <fieldset> <legend>Connexion</legend> <p> <label for="pseudo">Pseudo :</label><input name="pseudo" type="text" id="pseudo" /><br /> <label for="password">Mot de Passe :</label><input type="password" name="password" id="password" /><br /> </p> </fieldset> <p><input type="submit" value="Connexion" /></p> <input type="hidden" name="page" value="http://localhost/nuspheredebug/projectforum/index.php?DBGSESSID=-1"/> </form> <a href="./register.php">Pas encore inscrit ?</a> </div> </body> </html> ---------------------------------------------------

« previous php.webmaster (#7303) next »