I have some testers hitting my db trying to crash it. One of the users came to a standstill when he went to change his UserID (I created a Mod to let a user change their login ID, to go along with the change password and change e-mail address). He put a space in the login ID (e.g: Cpl Miller instead of CplMiller) then he couldn't log back in. I'm assuming it's because of the space. How do I check the input for spaces? I have the check in place for A-Z,0-9 characters only. While I'm descent in Perl, I've always hated trying to write a value check.
Here are the value checks I have:
$in{'userid'} =~ /^[a-zA-Z0-9]+$/ #Check for A-Z,0-9 characters only
$in{'email'} =~ /.+\@.+\..+/ #Check for valid e-mail format
What would I find a space in a value?
$in{'userid'} =~
Thanks for any help...
AJ
Here are the value checks I have:
$in{'userid'} =~ /^[a-zA-Z0-9]+$/ #Check for A-Z,0-9 characters only
$in{'email'} =~ /.+\@.+\..+/ #Check for valid e-mail format
What would I find a space in a value?
$in{'userid'} =~
Thanks for any help...
AJ