perl - example needed

  • From: "Lamar Upshaw" <lupshaw@xxxxxxxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Wed, 18 Jun 2008 22:40:37 -0700

From the CGI modual, I have a variable containing what will be a person's password, which will be added to the MySQL database. How do I make sure the variable only contains characters a-z A-Z and 0-9? I want to make sure the password starts with a letter, it may or may not have numbers, and no forbidden characters or symbols, including spaces. I actually want to do something similar with the username as well, check it to make sure only a-z and 0-9 are used with no forbidden characters, but I want to make sure the letters in the username are all lower case.


Thanks for any help given.

With All Respect,
Upshaw, Lamar T
__________
View the list's information and change your settings at //www.freelists.org/list/programmingblind

Other related posts: