Ver Mensaje Individual
  #1 (permalink)  
Antiguo 18/04/2016, 14:50
Avatar de Hernand67890
Hernand67890
 
Fecha de Ingreso: febrero-2016
Ubicación: Cundinamarca
Mensajes: 15
Antigüedad: 8 años, 2 meses
Puntos: 0
Pregunta Formulario de registro, realizar control de ingreso de datos

Saludos cordiales

Comunidad de programadores, tengo actualmente un formulario de registro el cual me funciona bien (anexo el código), mi pregunta es, ¿Que código adicional le puedo agregar para que en cada campo de Nombre, Apellido, Usuario, Contraseña y Correo Electrónico, el formulario acepte como es el caso de nombre, apellido y usuario, solo acepten esos campos solo letras y en contraseña solo números?

Espero sus indicaciones.

Gracias.




Código HTML:
Ver original
  1. <html><head><title>Registro</title>
  2. <link rel="stylesheet" href="buttons.css" type="text/css" media="screen" />
  3. </head>
  4. <body background="bgimage.jpg">
  5. <center>
  6. <br><br>
  7. <h2>FORMULARIO DE REGISTRO DE USUARIOS</h2>
  8. <form action="guardar.php" method="POST">
  9. <center><table border=1px>
  10. <td>
  11. Introduce Nombre :
  12. </td>
  13. <td>
  14.  <input type="text" name="nombre">
  15. </td>
  16. <tr>
  17. <td>
  18. Introduce Apellido   :
  19. </td>
  20. <td>
  21. <input type="text" name="apellido"><br>
  22. </td>
  23. <tr>
  24. <td>
  25. Introduce Usuario :
  26. </td>
  27. <td>
  28.  <input type="text" name="user">
  29. </td>
  30. <tr>
  31. <td>
  32. Introduce Password:
  33. </td>
  34. <td>
  35. <input type="password" name="clave"><br>
  36. </td>
  37. <tr>
  38. <td>
  39. Introduce Email   :
  40. </td>
  41. <td>
  42. <input type="text" name="email"><br>
  43. </td>
  44. <input type="submit" class="button blue" value="Registrar">
  45. </form>
  46. </body>
  47. </html>