Question : reCAPTCHA PHP not failing when nothing is entered; works fine when something is entered

Hi Experts,

I have a form that uses reCAPTCHA to all users to submit tags describing an ad. If I complete the captcha, it works fine, and the new tag is added. If I don't enter anything, the nothing works, but I don't get an error message. The attached file is the processing for the tag submission.

The attached code snippet is from the actual form.
 
Form processing code for captcha
 


You can see the form at work here:

http://www.greenwashingindex.com/beta/ad_single.php?id=7895

Feel free to submit tags or whatever, This is a dummy copy of the site.

Thanks for the help!

Lisa
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
<form id="tagging_form" name="tagging_form" action="action_add_tag.php" method="post">
								<label for="tags">Add New Tag:</label>
								<input type="text" name="tag" id="tag" />
								<input type="hidden" name="adId" value="<?php echo $_GET['id']; ?>" />
                                
                                <div style="margin-top:15px;margin-bottom:15px;"><?php
     require_once('recaptchalib.php');
     $publickey = "***************"; // you got this from the signup page
     echo recaptcha_get_html($publickey);
   ?>
</div>

Answer : reCAPTCHA PHP not failing when nothing is entered; works fine when something is entered

Random Solutions  
 
programming4us programming4us