Closed Thread Icon

Topic: Numeric Input only - textboxes (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=9619" title="Pages that link to Topic: Numeric Input only - textboxes (Page 1 of 1)" rel="nofollow" >Topic: Numeric Input only - textboxes <span class="small">(Page 1 of 1)</span>\

 
tryst
Obsessive-Compulsive (I) Inmate

From: Wales
Insane since: Apr 2003

posted posted 04-09-2003 14:29

Hi, all, how to I make textboxes (within a form) to only accept numeric values that are entered through the keyboard??

Cheers in advance

Tryst

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

posted posted 04-09-2003 14:51

tryst: You'd need to do some kind of validating. You could check the input with JavaScript (either as it is being entered on when it is submitted):

:FAQ: How do I do form validation with JavaScript?

Or you could use some server-side scripting e.g.:

:FAQ: How do I do form validation with PHP?

:FAQ: How do I do form validation with Perl?

___________________
Emps

FAQs: Emperor

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

posted posted 04-09-2003 18:14

As this is now being dealt with here:
www.ozoneasylum.com/Forum12/HTML/001352.html

I'll shut this one.

___________________
Emps

FAQs: Emperor

« BackwardsOnwards »

Show Forum Drop Down Menu