Search
Left Quote    Nearly all men can stand adversity, but if you want to test a man's character, give him power.
- Abraham Lincoln    
Right Quote
 
[login] | [Register]
Forum Index » PHP and mySQL » Viewing Topic and Replies
Post Reply


        Viewing Topic: Comment script
  This user is online  Guest
  Subject: "Comment script" Posted: @ 5:33 pm on Jun 26 2006   
Unregistered
Hi,
I am trying to intregrate captcha with your comment script, but I do not understand when you say, include the code into validation, I have put it in and I get all sorts of errors. Where should I put the code in question into the main script?

Any help here would be great as I get hundreds of spam comments on my site and it annoys me!!!!!

Thanks

Chris

    Viewed: 5,251 Times | Reply to This | To top
  This user is offline  bs0d
  Subject: "re: Comment script" Posted: @ 11:01 pm on Jun 26 2006    

Member #: 1
Rank: Admin. - (1,505)
Since: 02/06/05
Posts: 600
From: USA

I thought the description on the code sample page for the CAPTCHA (http://www.all syntax.com/code /php/57/CAPTCHA -Image/1.php) outlined exactly how you include it in your pages.

Go back through it and then reply what part you're having problems with.




-bs0d | AllSyntax.com

    Viewed: 5,241 Times | Reply to This | To top
  This user is online  Guest
  Subject: "re: Comment script" Posted: @ 7:07 am on Jul 02 2006    
Unregistered

  bs0d said...

< i> I thought the description on the code sample page for the CAPTCHA (http://www.all syntax.com/code /php/57/CAPTCHA -Image/1.php) outlined exactly how you include it in your pages.

Go back through it and then reply what part you're having problems with.


Where abouts do I place the following code:

if(!$_POST['ve rify']) {
die('Verify field was blank.');
} else {
if($_SESSION[' code'] != $_POST['verify ']) {
die('You did not enter the code from the box correctly.');
}

You mention the validation part of the script and you also mention about changing the session code if you want, does that mean you do not have to?



    Viewed: 5,222 Times | Reply to This | To top
Viewing Page: 1 of 1


1 |

You must be logged in to post on the forums. Login or Register








"AllSyntax.com" Copyright © 2002-2017; All rights lefted, all lefts righted.
Privacy Policy  |  Internet Rank