No Spam

by Mike Branski

Integration with PHP

I created a PHP function that goes hand in hand with No Spam, allowing you to format your e-mail addresses dynamically and at the correct sercurity level to allow your scripts to integrate seamlessly with little extra work on your part. Simply include the nospam() PHP function and wrap your e-mail addresses in it, setting the filter level if necessary. This saves you the time of having to format your dynamic e-mail addresses by hand before outputting them to No Spam.

Default, normal filter level

This:
<a href="#" rel="<?php echo nospam('mikebranski@gmail.com'); ?>" class="email">Mike Branski</a>

Becomes: Mike Branski

Low filter level

This:
<a href="#" rel="<?php echo nospam('mikebranski@gmail.com', 'low'); ?>" class="email_low">Mike Branski</a>

Becomes: Mike Branski

Multiple dots (.), Low filter level

This:
<a href="#" rel="<?php echo nospam('mike.branski@gmail.co.uk', 'low'); ?>" class="email_low">Mike Branski</a>

Becomes: Mike Branski