×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jul 2004
    Posts
    12

    textfield/textbox alphanumeric ?

    Can i restrict the input in textfield/textbox to alphanumeric only ?
    i don't want the user to input !@##$%$#*& <-- these
    I just see PHONENUMBER, EMAIL, ... and ANY for all kinds of input.
    THX

  2. #2
    Regular Contributor
    Join Date
    Aug 2003
    Location
    uk
    Posts
    232
    Not by just using the libraries.

    You could however, keep reading what they have typed so far, removed any non alphanumeric chars and then
    re-insert whats left back into the textbox.

    Its not a very good solution though, and it would be annoying to use if you were trying to insert a name
    as say, my name, alex_crowther

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×