View Single Post
  #2  
Old 01-27-2010, 12:13 AM
Quillink Quillink is offline
Member
 
Join Date: Dec 2008
Posts: 93
Credits: 16,263
Quillink
Default RE: Installing "Securimage CAPTCHA" - need help placing two sections of code (PHP)

Ok I think the prospect of downloading and following a tutorial is chasing people away, so I'll try a different approach:


Can anyone help me with placing these two code extracts in my register.php? It's the validation process for my Securimage CAPTCHA:

Code:
include_once $_SERVER['DOCUMENT_ROOT'] . '/securimage/securimage.php';

$securimage = new Securimage();
And

Code:
if ($securimage->check($_POST['captcha_code']) == false) {
  // the code was incorrect
  // handle the error accordingly with your other error checking

  // or you can do something really basic like this
  die('The code you entered was incorrect.  Go back and try again.');
}

Alternatively, does anyone know of a simpler CAPTCHA process? Maybe one you made yourself?

Thanks in advance
Reply With Quote