#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    5
    Rep Power
    0
    I'm maintaining a database of accounts on my webiste, and I need to make sure all logins and passwords contain only alhpanumeric characters. How would I do this?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 1999
    Location
    Annapolis, Maryland US
    Posts
    113
    Rep Power
    16
    if(ereg("[^a-zA-Z0-9]", $password))
    print"NO GOOD";
    else
    print"GOOD";

Similar Threads

  1. The Soothingly Seamless Setup of Apache, SSL, MySQL, and PHP
    By guest in forum Development Articles
    Replies: 631
    Last Post: January 13th, 2004, 05:41 PM
  2. Replies: 8
    Last Post: December 10th, 2003, 07:19 PM
  3. postgresql installation help
    By lightyears in forum PostgreSQL Help
    Replies: 3
    Last Post: November 2nd, 2003, 07:38 PM
  4. checking for characters....
    By ralphuk100 in forum HTML Programming
    Replies: 4
    Last Post: October 17th, 2003, 06:00 PM
  5. libtool-1.3.4_4 and bash settings
    By wacko_cracko in forum BSD Help
    Replies: 2
    Last Post: May 16th, 2003, 01:30 PM

IMN logo majestic logo threadwatch logo seochat tools logo