On Thu, Aug 26, 1999 at 10:01:13PM -0700, gene.ray@excite.com wrote: > Hello all! > > I have been banging my head for a while on this and I have to ask for help. > I am trying to limit two form text fields to only letters and to return the > appropriate response. If I enter a number in either box I get a "thank you" > and I shouldn't. If someone has a moment I would really appreciate an > explination to what I'm doing wrong. > > thanks, > gene > > if ( ($fname=~/(\D\S)*/) && > ($lname=~/(\D\S)*/) ) { > Only letters, zero length allowed, either of: /^[a-zA-Z]*(?!\n)$/ not /[^a-zA-Z]/ Only letters, zero length not allowed, either of: /^[a-z[A-Z]+(?!\n)$/ length and not /[^a-zA-Z]/ ===== Want to unsubscribe from this list? ===== Send mail with body "unsubscribe" to macperl-request@macperl.org