Re: How to check a password is only alpha characters?
Michael, There's a nifty custom tag in the allaire gallery called restricttextinput that will do what you're needing with javascript prior to their even submitting the form. You can indicate alpha, numeric, or alphanumeric, as well as indicating additional allowed characters. -Deanna Deanna Schneider Interactive Media Developer UWEX Cooperative Extension Electronic Publishing Group 103 Extension Bldg 432 N. Lake Street Madison, WI 53706 (608) 265-7923 -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: How to check a password is only alpha characters?
!--- 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/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: How to check a password is only alpha characters?
And if the user turns off JavaScript, what then? -Original Message- From: Deanna L. Schneider [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 08, 2000 9:23 AM To: [EMAIL PROTECTED] Subject: Re: How to check a password is only alpha characters? Michael, There's a nifty custom tag in the allaire gallery called restricttextinput that will do what you're needing with javascript prior to their even submitting the form. You can indicate alpha, numeric, or alphanumeric, as well as indicating additional allowed characters. -Deanna Deanna Schneider Interactive Media Developer UWEX Cooperative Extension Electronic Publishing Group 103 Extension Bldg 432 N. Lake Street Madison, WI 53706 (608) 265-7923 -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf _talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
Re: How to check a password is only alpha characters?
Well, yah, you have a point there. -d Deanna Schneider Interactive Media Developer UWEX Cooperative Extension Electronic Publishing Group 103 Extension Bldg 432 N. Lake Street Madison, WI 53706 (608) 265-7923 -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
Re: How to check a password is only alpha characters?
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/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
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/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: How to check a password is only alpha characters?
You might try writing a Regular Expression for this:-) -Original Message- From: Michael Kear [mailto:[EMAIL PROTECTED]] Sent: 08 August 2000 14:54 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/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: How to check a password is only alpha characters?
Yes, that's my problem Scott, I was asleep when they covered that in class. Or not concentrating. Or it was beyond my aging brain to grasp. (Shame on me -so now I'm up the proverbial creek. And the guy with the paddle is in the other boat.) So I guess what I'm asking is, what Regular Expression do I use? Help? Cheers, Mike Kear AFP Web Development Windsor, NSW, Australia On Tue, 8 Aug 2000, Scott, Andrew wrote: You might try writing a Regular Expression for this:-) -Original Message- From: Michael Kear [mailto:[EMAIL PROTECTED]] Sent: 08 August 2000 14:54 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/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
Re: How to check a password is only alpha characters?
Hello, --- At Tue, 8 Aug 2000 15:07:51 +1000 (EST), Michael Kear wrote in RE: How to check a password is only alpha characters? --- So I guess what I'm asking is, what Regular Expression do I use? script language=javascript type="text/javascript" function _check(){ if (document.form.field_name.value.match(/[^a-zA-Z0-9]/g)){ // invalid character... return false; }else{ return true; } } /script form name="form" onsubmit="return _check()" input type=password name=field_name input type=submit value="OK" /form Try it,... --^^--- Ken Saito Fujisoft ABC inc, Tokyo Office -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.