|
it
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Prevent entry of punctuation
Hi,
Is there anyway to format a text input box to prevent any punctuation marks from being entered? TIA, PW PW wrote on 18 jun 2006 in microsoft.public.inetserver.asp.general:
> Is there anyway to format a text input box to prevent any punctuation Not with serverside [ASP] code.> marks from being entered? Text input boxes only exist clientside. that is OT on this NG. However, once the result has arrived on the server, any string manipulation is possible: <% response.write result & "<br>" %> <script language='jscript' runat='server'> result = request.form('mybox').replace(/\W+/g,'') </script> -- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress) |
|||||||||||||||||||||||