On Sun, May 11, 2008 at 10:06 PM, Ardilla Roja <[EMAIL PROTECTED]> wrote: ... > <form action="misitio.com" method="post"> > <fieldset> > <legend title="Forma para login de clientes">Clientes</legend> > <label for="login[username]">Usuario:</label> <input type="text" > name="login[username]" value="" /> > <label for="login[password]">Contraseña:</label> <input > type="password" name="login[password]" value="" /> > <button class="submit">Entrar »</button> > </fieldset> > </form> > > ahora, al tratar de validad el xhtml, me da esto: > > Line 37, Column 24: character "[" is not allowed in the value of > attribute "for". > <label for="login[username]">Usuario:</label> <input type="text" name="lo > > It is possible that you violated the naming convention for this > attribute. For example, id and name attributes must begin with a > letter, not a digit. > > Ya trate usar la entidad para el [ , pero no me funciona...
Supongo que [ no estara permitido en identificadores de for, prueba a usar el id, en lugar del name, como en este ejemplo: <html xmlns="http://www.w3.org/1999/xhtml"> <head><title>k</title></head> <body> <form id="formularioEjemplo" method="post" action="http://www.mipagina.com/accion.php"> <fieldset title="Formulario de ejemplo"> <legend>Prueba este formulario de ejemplo</legend> <label for="campo">Campo:</label><input type="text" id="campo" name='cosa[test]' /> <input type="submit" id="enviar" value="Enviar datos" /> </fieldset> </form> </body> </html> _______________________________________________ Lista de distribución Ovillo Para escribir a la lista, envia un correo a Ovillo@lists.ovillo.org Puedes modificar tus datos o desuscribirte en la siguiente dirección: http://lists.ovillo.org/mailman/listinfo/ovillo