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/[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.