Sign in:
Username:
Password:  
»Forgot your password?

Home | Forum | How to Protect Your Web Form | How to Protect Your Email | Sign Up

Insure yourself from spam! The Anti Spam Insurance Company - ProtectWebForm!

Forum - code error

PostMessage
frasoh
2011-07-31 11:56:56
Bonjour

I changed my code, choice "enable", but it doesen't work. The ancien
code is always OK.
Look my html code in www.auvillar.com (for cutenews) :

<table border="0" width="370" cellspacing="0" cellpadding="0">
<tr><font color=red>Ajouter un commentaire :</font>
<td width="60">Nom:</td>
<td><input type="text" name="name"></td>
</tr>
<tr>
<td colspan="2">
<textarea cols="40" rows="6" id=commentsbox
name="comments"></textarea><br />
<center><a href="http://www.protectwebform.com/" title="Captcha
service - protectwebform.com!"><img

src="http://www.protectwebform.com/images/ssl_lock.gif"
border="0"></a> Entrez ce code :<br /><input type="text"

style="vertical-align:top;" name="protectwebformcode" value=""> <img


src="http://protectwebform.com/image/41654/"><br><input type="submit"
name="submit" value="Envoyer"></center>
</td>
</tr>
</table>
frasoh
2011-08-03 02:22:50
I fond the solution. We ought to put php code in this file
"cutenews/show_news.php", like this :
////////////////////////////////////////////////////////////
// Code provided by http://www.protectwebform.com

if($GLOBALS['REQUEST_METHOD'] == 'POST' || count($_POST) > 0) {
$pwf_message = "The image code you have provided does not match the
actual one. Hit the 'back' button of your browser and input the
correct code please.";

if(strlen($_POST['protectwebformcode']) > 30) {
die($pwf_message);
}

$protectwebformresult =
@file_get_contents( "http://protectwebform.com/verify01?vui=NUMBER OF
IMAGE (3th code installation)" .
urlencode($_SERVER['REMOTE_ADDR']) . "&vs=" .
urlencode($_POST['protectwebformcode']));
if(preg_match("|<authorization status=\"0\"|", $protectwebformresult))
{
echo "Warning. You are not authorithed to use image protection
provided by
http://www.protectwebform.com. Read http://www.protectwebform.com
FAQ for more information";
} elseif(!preg_match("|<verification result=\"yes\"/>|",
$protectwebformresult)) {
die($pwf_message);
}
}

// End of code provided by http://www.protectwebform.com
////////////////////////////////////////////////////////////






Post Reply:

You must be logged in to reply.
Post message
Name: 
Email: 
Url: 




Registered users: 85631

Forms protected: 48551

Further Reading & Anti Spam Resources:

Directory


    ©Copyright 2006 ProtectWebForm.com. All rights reserved. Read our Privacy Policy

Page copy protected against web site content infringement by Copyscape