View Single Post
Old 07-29-2002, 07:25 AM   PM User | #4
sanuk
New Coder

 
Join Date: Jul 2002
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
sanuk is an unknown quantity at this point
More Questions

Hi friends,
Thanks, it works !!

But now I need just the opposite for a fill-in form.

====================
$minchar = '10';
$maxchar = '20';
if(length $FORM{'data8'} < $minchar || length $FORM{'data8'} > $maxchar) { &errormessage }
========================

1/How do I add to the above that the string may ONLY contain letters a-z and A-Z and/or numbers 0-9, nothing else.

2/completely same as above, but may also not contain any spaces.

Thanks and Regards,
Sanuk
sanuk is offline   Reply With Quote