But I have never done this myself and yet I’m getting lots of spam.
The best way of preventing spam is not to publish email addresses on your web site at all but instead point people to a contact form on your site.
Thank youit works perfectly. I bet a lot of people will find this very useful.
One small tweak; Is is possible to display who you are emailing above the contact form?
many thanks again,
Gareth
<h1>Contact [+selected_subject+]</h1>
<?php
//existing line
$templates['tpl'] = str_replace('[+mailaddress_tag+]',$mail_tag,$templates['tpl']);
//added line
$templates['tpl'] = str_replace('[+selected_subject+]',$select_subjects[$email_index],$templates['tpl']);
?>
Quote from: TobyL at Feb 24, 2007, 08:01 AMBut I have never done this myself and yet I’m getting lots of spam.
The best way of preventing spam is not to publish email addresses on your web site at all but instead point people to a contact form on your site.
What can the problem be?

<?php
function getBanketPlace( &$fields ){
$placeid = (isset($_GET['place']))? $_GET['place'] : "";
$returnstring = "";
if (!empty($placeid)){
$returnstring = $placeid;
} else {
$returnstring = "somewhere else";
}
$fields['banketwhere']= $returnstring;
return true;
}
return '';
?>You select [+banketwhere+]!
.Clever and simple. Good job.
I used to have lots of spam in the comments of articles on my site.
Solved the problem by adding a radio button field in the comment form, like this:
[*] I’m a bot
[*] I’m human
[*] not sure...
asking visitors to make the ’right’ choice.
Haven’t been bothered since then... hop that bots don’t read up here.