Ver Mensaje Individual
  #1 (permalink)  
Antiguo 29/10/2005, 08:55
Avatar de shock_unown
shock_unown
 
Fecha de Ingreso: mayo-2005
Mensajes: 14
Antigüedad: 18 años, 11 meses
Puntos: 0
Problemas con los formularios en XHTML

Aiya!

Validando lo que llevo de mi web (http://shocksforum.hamsterdoris.com/relatos/) me encuentro con que se queja de esto:
Cita:
Line 25 column 121: 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.

...="35e5685e76f5179c0c5f27a297bb2388" />

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>").
Y esto me lo dice con cada etiqueta que tengo en los formularios.

Tengo los formularios metidos en divs, así que no sé cuál puede ser el error.

Código PHP:
<form method="post" action="<? print($_SERVER["PHP_SELF"]); ?>">
    <input type="text" name="nombre" maxlength="20"/><br />
    <input type="password" name="senna" maxlength="10" /><br />
    <input type="checkbox" name="recordar" /><br />
    <input type="hidden" name="enviar" value="1" />
    <input type="submit" value="Entrar" />
    </form>
¿Sabéis algo? Gracias.

Ah, y otra cosa. Con las sesiones, a cada enlace se le añade el código "&sesid=xxx"; entonces, da error diciendo que es una entidad desconocida y eso. La pregunta es, ¿cómo puedo hacer para que en vez de & escriba &amp;?

Gracias ;)

Última edición por shock_unown; 29/10/2005 a las 09:25