
Originally Posted by
TheMan177
Client-side validation is only to improve user experience. You still must validate input on the server.
Well, his last request
Code:
enable and disable a field when i click a radio botton
does seem to be client side.
It would be nice to know if he actually wants to strip all HTML codes or just 'sanitize' them.
By 'numbers', are 14 14.1 and 1.41e3 all ok?
Empty values and input length can be considered the same think. First strip leading/trailing white space and then take the length. If it is zero, it is an empty value.