Posted by Craig Taylor on 07/30/06 02:32
FayeC wrote:
> Can someone point me to a decent form validation tutorial. SOmething
> that teaches how to validate fields for strings containing "http://"
> or any other specific word/phrase?
> I have a form with client-side validation but that isn't any good when
> it comes to spammers.
> I would like to be able to have both client and server side validation
> if possible but if it's too much then I will stick to server side.
> I am currently using NMS FormMail to process the form and send it
> through my smtp server but although NMS is pretty safe in regards to
> stopping email relay through the form it still doesn't stop spammers
> from sending email to me.
> Any help is very appreciated.
>
> FayeC
Check out the pear HTML_QuickForm for the client side regular
expression validation rules; then use the same regular expression on
the server side....
- Craig Taylor
http://www.ctalkobt.net
[Back to original message]
|