Bonsoir,
Celà fait un bon moment que je cale pour valider une des pages de mon site. J'ai réussi à enlever toutes les erreurs sauf une qui persiste.
L'erreur :
Le code source :Error Line 48 column 168: document type does not allow element "input" here; missing one of "ins", "del", "h1", "h2", "h3", "h4", "h5", "h6", "p", "div", "address", "fieldset" start-tag.
...="1f35ef696197adb135489accae56c485" />
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
D'avance merci pour vos réponses.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142 <?php session_start(); ini_set('arg_separator.output', '&'); // pour que les sessions soient valide xhtml 1.1 require 'admin/connexion.php'; mysql_connect($mysql_host, $mysql_login, $mysql_password); mysql_select_db($mysql_bdd); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" > <head> <title>A</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" media="screen" type="text/css" title="style" href="templates/LightBlue/style.css" /> </head> <body> <!-- Header --> <div id="header"> <p><!-- choix langue --></p> <div class="bloc_header"> </div> </div> <div id="barre_haut"> <br /> </div> <!-- Menu --> <div id="menu"> <div class="bloc_menu"> <h4>Navigation</h4> <p> <a href="index.php?page=accueil">Accueil</a><br /> <a href="index.php?page=plan_site">Plan du site</a><br /> <a href="index.php?page=qui_sommes_nous">Qui sommes nous ?</a><br /> <br /> <a href="index.php?page=faq">FAQ / Aide</a> </p> </div> <br /> <div class="bloc_menu"> <h4>Recherche</h4> <p> <a href="index.php?page=recherche_simple">Simple</a><br /> <a href="index.php?page=recherche_avancee">Avancée</a><br /> </p> </div> <br /> <?php $donnees = mysql_query("SELECT validation_conditions FROM membres WHERE login='". $_SESSION['membres'] ."'"); $data = mysql_fetch_array($donnees); // si la variable session existe (membre connecté) et que la page vue est différentes de celles où l'on affiche les conditions générales alors ... if(isset($_SESSION['membres']) AND $data['validation_conditions'] == 1) { $donnees = mysql_query("SELECT entreprises FROM membres WHERE login='". $_SESSION['membres'] ."'"); $data = mysql_fetch_array($donnees); ?> <div class="bloc_menu"> <h4>Espace membre</h4> <p>Bienvenue <?php echo $_SESSION['membres']; ?> !<br /><br /> <a href="index.php?page=membres/membres">Infos générales</a><br /> <a href="index.php?page=membres/mes_informations">Mes informations</a><br /> <a href="index.php?page=membres/password">Changer de mot de passe</a><br /> <br />Mes entreprises :<br /> <?php $entreprises = $data['entreprises']; $entreprises = str_replace('-a4-','<br />',$entreprises); echo $entreprises; ?><br /> <br /><a href="index.php?page=membres/deconnexion">Se déconnecter</a> </p> </div> <?php } else // si pas de variable session --> utilisateur NON connecté { ?> <div class="bloc_menu"> <h4>Membres</h4> <form id="form_membres" method="post" action="index.php?page=membres/membres_send"> <p>Utilisateur :<br /> <input type="text" name="login" size="20" /></p> <p>Mot de passe :<br /> <input type="password" name="password" size="20" /></p> <p><input type="submit" value=" OK " name="B1" /></p></form> <p> <a href="index.php?page=inscription">S'inscrire</a> </p> </div> <?php } ?> <br /> </div> <!-- Corps --> <div id="corps"> <?php $page = $_GET['page']; if ($page == NULL) { $page="accueil"; } if ((!file_exists($page.".php"))&&(!file_exists($page.".html"))&&(!file_exists($page.".htm"))) { $page="404"; } if (file_exists($page.".php")) { include($page.".php"); } elseif (file_exists($page.".html")) { include($page.".html"); } else { include($page.".htm"); } ?> </div> <div id="barre_bas"> <br /> </div> <!-- Footer --> <div id="footer"> <p>© 2006 - A - <a href="http://validator.w3.org/check?uri=referer">Valid XHTML 1.1</a></p> </div> </body> </html>
++
Partager