Ver Mensaje Individual
  #4 (permalink)  
Antiguo 10/11/2009, 14:39
Avatar de dcreate
dcreate
 
Fecha de Ingreso: octubre-2009
Ubicación: Veracruz
Mensajes: 536
Antigüedad: 15 años, 3 meses
Puntos: 22
Respuesta: Solo letras a-z

y si solo quieres q una caja te permita solo entrada de letras, aki te dejo esto:

Código PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml">
<
head>
<
meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<
title>Documento sin t&iacute;tulo</title>
<
SCRIPT>
var 
nav4 window.Event true false;
function 
acceptNumNumero(evt)
{
// NOTE: Backspace = 8, Enter = 13, '0' = 48, '9' = 57
var key nav4 evt.which evt.keyCode;
return ((
key >= 65) && (key <= 90) || (key >= 97) && (key <= 122));
}

</script>
</head>

<body>
<form id="form1" name="form1" method="post" action="">
<input type="text" name="medida" style="right:auto" onKeyPress="return acceptNumNumero(event)">
</form>
</body>
</html> 
espero te ayude.