Topic awaiting preservation: Form validate characters (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: 1393 |
posted 02-04-2005 17:40
How would I make it so that a text field is required to have a minimum amount of characters, at least 2 numeric characters, and 1 special? I've been searching the net for a script similar that I could just change around but I can't find anything... thanks for any help. |
Paranoid (IV) Inmate From: France |
posted 02-04-2005 18:10 |
Bipolar (III) Inmate From: 1393 |
posted 02-04-2005 18:18
Yes... more insights... Thanks! |
Paranoid (IV) Inmate From: France |
posted 02-04-2005 20:17
sorry. |
Bipolar (III) Inmate From: 1393 |
posted 02-05-2005 00:18
Rad! it works.... so could I put that whole string in an 'if' function to have an alert box pop-up when invalid...? I would have to take out the '?true:false' and set it == to true or false, right? Sorry, I'm just learning this stuff. Thanks for your help! |
Paranoid (IV) Inmate From: France |
posted 02-05-2005 01:25
Sure, and to so it'd be more convenient to put the whole form check in a function that you'd call in the onsubmit. |
Bipolar (III) Inmate From: 1393 |
posted 02-05-2005 03:53
Poi, you ROCK! Thanks for taking the time to help me out. Peace. |