Prevent entry of punctuation

P

PW

Hi,

Is there anyway to format a text input box to prevent any punctuation marks
from being entered?

TIA,
PW
 
E

Evertjan.

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
marks from being entered?

Not with serverside [ASP] code.
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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top