Using control chars as constraints in form validation

  • Thread starter Thread starter Philip Wasson
  • Start date Start date
P

Philip Wasson

Is there a way to use control chars as constraints in form
validation? I want to prevent CR/LF from being entered in
a form field.
 
Yes, you can use JavaScript to grab the keystroke and ignore ASCII 10 and
ASCII 13. You can also write a script that strips them when place in. It
depends on the goal.

--
Gregory A. Beamer
MPV; MCP: +I, SE, SD, DBA

**********************************************************************
Think outside the box!
**********************************************************************
 

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

Back
Top