<br><br><div class="gmail_quote">On Mon, Mar 3, 2008 at 3:15 PM, Patrick R. Michaud <<a href="mailto:pmichaud@pobox.com">pmichaud@pobox.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">On Mon, Mar 03, 2008 at 11:46:53AM +0100, Roman wrote:<br>
> I don't want to use captcha, I want to ignore entries containg strings<br>
> used by spammers, particularly "<a href=" and "[url=". Perhaps "match" or<br>
> "if" parameters of (:template:) directive could solve it but I haven't<br>
> found proper syntax. Has anyone been successful with this?<br>
<br>
</div></div>Try<br>
<br>
(:template require <field> match=-"[url=" :)<br>
<br>
where <field> is the input form field you want to check for "[url=".<br>
<font color="#888888"><br></font></blockquote></div><br>-"[url=" as a value of match parameter produces warning: "preg_match(): Compilation failed: missing terminating ] for character class at offset 10 in pmform.php on line 98"<br>
<br>After several attempts I found this:<br>1. It looks that match parameter does not match substring but entire content of input field. The following works but only if href is the only text in <field>.<br><br> (:template require <field> match=-href :)<br>
<br>2. Match does not accept quotes.<br><br> (:template require <field> match=-"href" :) does not work even if href is the only text of <field>.<br><br>Roman<br><br><br>