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

    Join Date
    Jun 2000
    Rep Power
    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
    Annapolis, Maryland US
    Rep Power
    if(ereg("[^a-zA-Z0-9]", $password))
    print"NO 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, 04:41 PM
  2. Replies: 8
    Last Post: December 10th, 2003, 06:19 PM
  3. postgresql installation help
    By lightyears in forum PostgreSQL Help
    Replies: 3
    Last Post: November 2nd, 2003, 06:38 PM
  4. checking for characters....
    By ralphuk100 in forum HTML Programming
    Replies: 4
    Last Post: October 17th, 2003, 05: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, 12:30 PM

IMN logo majestic logo threadwatch logo seochat tools logo