NYMU Taipei/phptest
From 2007.igem.org
(Difference between revisions)
Line 11: | Line 11: | ||
<INPUT type="submit" value="Send"> <INPUT type="reset"> | <INPUT type="submit" value="Send"> <INPUT type="reset"> | ||
</form></html> | </form></html> | ||
+ | |||
+ | <script language="JavaScript" type="text/javascript"> <!-- | ||
+ | function check_intkey(key){ | ||
+ | if (key>=48 && key<=57) { | ||
+ | return true; | ||
+ | } else { | ||
+ | return false; | ||
+ | } | ||
+ | } | ||
+ | //--> </script> | ||
+ | |||
+ | <input type="text" name="birthday" onKeypress="return check_intkey(event.keyCode)" /> |
Revision as of 18:30, 3 September 2007
<script language="JavaScript" type="text/javascript"> </script>
<input type="text" name="birthday" onKeypress="return check_intkey(event.keyCode)" />