CAPTCHA validation HELP

Hi all,

I have tried using this CAPTCHA Validation PHP script

I have created the CAPTCHA alright, but it seems that no matter what letters I enter (wrong or right) the form can be submitted.

I have also tried to embed my thankyou.php (after the form has been sent) with the VALIDATION script he gives (attached below), but it doesn’t help - forms get sent no matter what i do.

My site is in hebrew, so it may be difficult for u to eatch the source, but I am desperate for help! BOTs are constantly psamming me with my forms…

http://www.paripassu.co.il/form2.htm - the form
http://www.paripassu.co.il/thankyou.php - the thankyou page

(please note that i am using YAV verification also - but chose to implement a different CAPTCHA - since yave2.0 does not show how to acctually make the cpatcha… can this be the problem?)

THX
Jon


<?php
session_start();$user_content=trim($_POST['user_content']);$user_captcha_input=trim($_POST['user_captcha_input']);if(isset($_SESSION['encoded_captcha'])){ if($_SESSION['encoded_captcha'] == md5($user_captcha_input)) { //..THE USER IS TRUSTED, STORE THEIR CONTENT } else { //THE USER ENTERED THE WRONG CAPTCHA //DISPLAY AN ERROR MESSAGE }}
?>

hi i tried to understand the page you wrote but i’m having a problem finding the function:
onsubmit="checkOnSubmit(‘form’, rules);

i cannot find the definition for the function checkOnSubmit

This is the YAV 2.0 Java Script - my form vaildation tool
it shouldn’t be the problem…

http://yav.sourceforge.net

there is a problem here
your code:
onsubmit="return onsubmit=“checkOnSubmit(‘form’, rules);return false;”>

from http://yav.sourceforge.net:
onsubmit=“return performCheck(‘formName’, rules, ‘classic’);”>

ok, thx - but since the CAPTCHA is non-YAv related - this is the problems… the form is still go even when i put the wrong code…
I have also tried uploading it in PHP http://www.paripassu.co.il/form2.php

Any other toughts?

anybody??? help …