SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Almeaty Member
    Join Date
    Jul 2000
    Location
    Nowhere
    Posts
    278
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I want to filter out every p/w inputs which contain unaccepted characters. This p/w-field should only accept characters: A..Z, a..z, 0..9 else: echo 'Password contains unaccepted chars'

    Thanks in advance (TIA)!

  2. #2
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    if (!eregi("^[0-9a-zA-Z]{1,}$", $password)) {
    print "Incorrect format";
    }
    else {
    print "Password Okay";
    }
    Please don't PM me with questions.
    Use the forums, that is what they are here for.


Bookmarks

Posting Permissions

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