Can't add reCaptcha, please help!

Discussion in 'PHP' started by nickharper, Jun 17, 2009.

  1. #1
    I am trying to add recaptcha but cant get it working

    The post code for the form is:

    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    }
    
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
      $insertSQL = sprintf("INSERT INTO comments (gameid, name, email, url, `comment`) VALUES (%s, %s, %s, %s, %s)",
                           GetSQLValueString($_POST['gameid'], "int"),
                           GetSQLValueString($_POST['name'], "text"),
                           GetSQLValueString($_POST['email'], "text"),
                           GetSQLValueString($_POST['url'], "text"),
                           GetSQLValueString($_POST['comment'], "text"));
    
      mysql_select_db($database_Xbox360, $Xbox360);
      $Result1 = mysql_query($insertSQL, $Xbox360) or die(mysql_error());
    }
    PHP:
    It is on the same page as the form so once it submits it auto updates it rather than validating and processing on an external php page.

    Can anyone help?
     
    nickharper, Jun 17, 2009 IP
  2. nickharper

    nickharper Active Member

    Messages:
    732
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    75
    #2
    Can anybody help?
     
    nickharper, Jun 25, 2009 IP
  3. Wrighty

    Wrighty Peon

    Messages:
    199
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    What errors are being returned. And can you explain how you have it setup ..

    Do you have pageA that posts a form to pageB?

    Which page is that recaptcha code in?
     
    Wrighty, Jun 25, 2009 IP