Google Recaptcha being ignored with form action
<p>Just integrated Google Recaptcha. I am using this form as a POST to a secure checkout for a secure transaction site ( API ). </p>

<p>My challenge is, I have the form action =</p>

<pre><code>"action="https://securepayments.cardconnect.com/hpp/payment/"
</code></pre>

<p>And event if I use :</p>

<pre><code>if (isset($_POST['submit'])) {
</code></pre>

<p>to validate the :: recaptcha :: it still just goes straight to the form action URL without verifying the recaptcha.</p>

<p>Here is more code:</p>

<pre><code>    $secret = '-- XX --';
    $response = $_POST['g-recaptcha-response'];
    $remoteip = $_SERVER['REMOTE_ADDR'];

    $url = file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=$secret&amp;response=$response&amp;remoteip=$remoteip");

    $res = json_decode($unpass, TRUE);

    $result = json_decode($url, TRUE);
    if ($result['success'] == 1) {
        echo $_POST['name'];
        echo $_POST['companyname'];

    }
    else { echo 'you are a robot'; }
}
</code></pre>

<p>The form action URL passes POST / hidden variables to connect via MID/Password to authenticate itself with the API. I can't figure out how to integrate a solution to use recaptcha and then do the form action. Any help would be awesome!</p>