Ver Mensaje Individual
  #3 (permalink)  
Antiguo 10/05/2007, 11:45
Avatar de el cirujano
el cirujano
 
Fecha de Ingreso: mayo-2003
Ubicación: Frente al PC
Mensajes: 609
Antigüedad: 21 años
Puntos: 3
Re: no se ejecuta esta validacion

yo tengo este script

Código PHP:
<head>

<
script language="JavaScript">
<!--
var 
nav4 window.Event true false;
function 
acceptNum(evt){    
// NOTE: Backspace = 8, Enter = 13, '0' = 48, '9' = 57    
var key nav4 evt.which evt.keyCode;    
return (
key <= 13 || (key >= 48 && key <= 57));
}
//-->
</script>

</head>
<body>

<p><input type="text" name="valor" size="12" maxlength="12"
onKeyPress="return acceptNum(event)"></p>

</body> 
pero dejame decirte que esto ya es del foro de JavaScript no de PHP
__________________
CSS2 + AJAX + PHP + MySQL, una mezcla sin competencia!!!!!!