Much better to do

<cfif REFind("^[a-zA-Z0-9]*$", password )>


~Justin


> <!---
>   Eliminate anything that isn't alphanumeric, then check to see if it's
the
> same thing
> --->
> <CFIF REReplace(newpassword1,"[^a-zA-Z0-9]","","ALL") IS newpassword1>
>   <!--- ... --->
> </CFIF>
>
> But, as Perl says, there's more than one way to do it ...
>
> -Rick
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Michael Kear
> Sent: Tuesday, August 08, 2000 12:54 AM
> To: [EMAIL PROTECTED]
> Subject: How to check a password is only alpha characters?
>
>
> Uh oh. I just bit off more than I can chew here I think.
>
> I'm checking a submitted password for validity before updating my user
> database. One of the requirements is that the password be made up of only
> the characters a-z, A-Z and 0-9.  In other words, no punctuation, dashes,
> underscores, spaces etc.
>
> Can someone please tell me what code to use to test variable newpassword1
> for this?
>
> Thanks,
>
> Mike Kear
> AFP Web Development
> Windsor, NSW, Australia.
>
>
>
>
> --------------------------------------------------------------------------
--
> --
> Archives: http://www.mail-archive.com/[email protected]/
> To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
> send a message to [EMAIL PROTECTED] with 'unsubscribe' in
> the body.
>
> --------------------------------------------------------------------------
----
> Archives: http://www.mail-archive.com/[email protected]/
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
>
>

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to