Numeric text fields?

I need a text field in my webpage which only accepts numeric entries. Can anyone tell me how to code one? :puzzle:
Thanks
Aditya