simonpearce
ISP
Hello all,
I'm using this to check that a form field contains something:
&error("Sorry, you must enter a domain name."
unless $FORM{'domain'};
but how can I change it that it will check for the presence of a full stop (period)?
The input must be in the format firstname.lastname so I guess I just need to check there's a full stop in it somewhere.
Any help greatfully received.
Simon
I'm using this to check that a form field contains something:
&error("Sorry, you must enter a domain name."
but how can I change it that it will check for the presence of a full stop (period)?
The input must be in the format firstname.lastname so I guess I just need to check there's a full stop in it somewhere.
Any help greatfully received.
Simon