Prevent entry of punctuation
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > IIS server support > IIS ASP > Prevent entry of punctuation




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Prevent entry of punctuation  
PW


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-18-06 06:24 AM


Hi,

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

TIA,
PW








[ Post a follow-up to this message ]



    Re: Prevent entry of punctuation  
Evertjan.


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-18-06 12:24 PM

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>

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:44 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register