Posted by Ron Barnett on 10/03/76 11:59
<affiliateian@gmail.com> wrote in message
news:1159368852.512889.252720@m7g2000cwm.googlegroups.com...
> We are trying to prevent spammers from mass mailing their list while
> using our contact us script. We have a few security measures in place
> but would also like to add a "check for more than 1 @'s in the to:, cc:
> and bcc: fields. Can anyone point us to some code or turotials for
> doing this?
>
> Thanks in advance.
substr_count($CClist, '@')
will return the number of @ characters in $CClist
check out the PHP manual at PHP.net
Cheers
Ron
[Back to original message]
|