Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
if ($pw ne ""){ $fieldValid=$pw=~/^\D*\d{4}?\D*\d{4}?\D*\d{4}?\D*$/; if ($fieldValid) { $pw=~s/\D//g } else { $StoresfailedFields="PW";$missingdigitserror = "11 or 12";$info. +="$TheFields $StoresfailedFields $cardfield $requiresfield $missingdi +gitserror $digitsfield<BR>"; $formValid=0 } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: validating numerical field
by boo_radley (Parson) on Dec 03, 2002 at 21:51 UTC | |
|
Re: validating numerical field
by graff (Chancellor) on Dec 05, 2002 at 03:24 UTC |