Impossible de valider mon formulaire XHTML 1.0 Strict

WRInaute discret
Bonjour,

je désespére de faire valider mon formulaire avec doctype xhtml 1.0 strict :

voici l'erreur :
Code:
document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag

…"75cae011c83c08ecd2205027f9ef6ccb" />

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>").


Voici le code :
Code:
  <form method="get" class="search" id="searchform" action="url_de_mon_site"><input type="hidden" name="PHPSESSID" value="75cae011c83c08ecd2205027f9ef6ccb" />
 <div id="formsearch">
 <input type="hidden" name="httpagent" alt="httpagent" value="" />
 <input type="text" value="Votre recherche" onfocus="clearField(this)" onblur="setField(this)" name="s" id="searchbox" />
 <button type="submit" class="sendbutton_search" value="Envoyer">Rechercher</button>
 </div>
 </form>


Note importante : impossible d'ajouter mon div avant
Code:
 <input type="hidden" name="PHPSESSID" value="75cae011c83c08ecd2205027f9ef6ccb" />
, il me crée cet input automatiquement après la balise form.

Et je suis hébergé chez OVH.

Si quelqu'un avait la solution miracle..
 
WRInaute discret
J'ai trouvé :)

pour ceux que ca intéresse, modif de la config php :
Code:
ini_set('url_rewriter.tags','get=fakeentry');
 
WRInaute impliqué
il dit qu'il a pas compris...

J'ai loupé l'info ou tu nous dis pas d'ou il sort ton config.php ?
d'un framework ? d'un CMS ? d'un blog tout fait ? d'un script connu ? de ton code perso ?
 
Discussions similaires
Haut