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!
**********************************************************************
 
Back
Top