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 }}
?>