build a spam free contact forms without captcha

 

Here  anitspam  class used for the input url is give the value null

WP-SYNHIGHLIGHT PLUGIN: NOTHING TO HIGHLIGHT! PLEASE READ README.TXT IN PLUGIN FOLDER!
<form action="/submit.php" method="post">

    <p>Your name: <input type="text" name="name" /></p>

    <p>Your email: <input type="text" name="email" /></p>

    <p class="antispam">Leave this empty: <input type="text" name="url" /></p>
    
    <p><input type="submit" value="Send" /></p>

</form>

[/codesyntax ]

WP-SYNHIGHLIGHT PLUGIN: NOTHING TO HIGHLIGHT! PLEASE READ README.TXT IN PLUGIN FOLDER!
.antispam { display:none;}

[/codesyntax ]

here post value url  is checked.

WP-SYNHIGHLIGHT PLUGIN: NOTHING TO HIGHLIGHT! PLEASE READ README.TXT IN PLUGIN FOLDER!
<?php
  if (isset($_POST['url']) && $_POST['url'] == ''){

          mail( 'you@yoursite.com', 'Contact Form',      print_r($_POST,true) ); 
} 

[/codesyntax ]

 

Leave a Reply

Your email address will not be published. Required fields are marked *