in reply to Re: Allow empty form fields regex
in thread Allow empty form fields regex
For some reason this != was not helping the situation.if (($contents ne "") && (!($contents =~ /^[\w \.\,\=\" \/<>]+$/))){ $contentserror = "Error - message.";++$error; }
Edit by castaway, added code tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Allow empty form fields regex
by Hissingsid (Sexton) on Mar 18, 2004 at 17:18 UTC |