www.webdeveloper.com
Results 1 to 2 of 2

Thread: I want a better error page when reCaptcha is not entered correctly

  1. #1
    Join Date
    Mar 2009
    Posts
    71

    Arrow I want a better error page when reCaptcha is not entered correctly

    Hello,

    For the following form, http://www.flagsexpress.com/shell/free_cat.htm, when the reCaptcha at the bottom is not entered correctly, the landing page is terrible. I have little to no experience with PHP but I would really like to create a better page, basically a similar page to the <<<EOD page that results when the reCaptcha is entered correctly. Or even better, I'd like it to stay on that page and have a small error message show below the box. How would I go about doing that?
    I'm thinking I need to change the following code:

    PHP Code:
    if (!$resp->is_valid) {
        
    // What happens when the CAPTCHA was entered incorrectly
        
    die ("The reCAPTCHA wasn't entered correctly. Go back and try it again." .
             
    "(reCAPTCHA said: " $resp->error ")");
      } else {
        
    // Your code here to handle a successful verification
      

    Buuuuuut I have no idea where to start.
    Last edited by NikkiD; 01-25-2012 at 11:34 AM.

  2. #2
    Join Date
    Mar 2009
    Posts
    71
    I see the code on this page may be what I am looking for but I am not sure exactly how it should be put into my code:
    http://stackoverflow.com/questions/8...ptcha-is-wrong

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles