…send data to and external crm…

Home Forums Quform WordPress …send data to and external crm…

This topic is: resolved

This topic contains 5 replies, has 2 voices, and was last updated by  area97 1 month, 3 weeks ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #21813

    area97
    Participant

    hello, I’ve followed instructions from http://support.themecatcher.net/quform-wordpress/guides/integration/send-form-data-to-another-script

    I can get email sent to me about submission, no errors, however the external crm is not updated.

    this is the code I’ve used:


    function my_post_to_another_script($form)
    {
    // Rewrite the post variables
    $post = array(
    'formSiLeads' => $_POST['iphorm_1_2'], // Change iphorm_X_X to name field unique ID
    'nome' => $_POST['iphorm_1_3'], // Change iphorm_X_X to name field unique ID
    'cognome' => $_POST['iphorm_1_4'], // Change iphorm_X_X to email field unique ID
    'telefono' => $_POST['iphorm_1_5'], // Change iphorm_X_X to phone field unique ID
    );

    // Create a new cURL resource
    $ch = curl_init();

    // Set URL and other appropriate options
    curl_setopt($ch, CURLOPT_URL, 'http://xxx.xxx.xxx/send?idprogetto=318');
    curl_setopt($ch, CURLOPT_POST, true);
    curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post));

    // Grab URL and pass it to the browser
    curl_exec($ch);

    // Close cURL resource, and free up system resources
    curl_close($ch);
    }
    add_action('iphorm_post_process_1', 'my_post_to_another_script', 10, 1);

    I’ve also tried with code suggested here: http://support.themecatcher.net/forums/topic/form-get-to-external-url
    without success.

    suggestions?
    thank you.

    #21850

    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #21872

    area97
    Participant

    just updated to 2.0.1

    #21976

    area97
    Participant

    bump!

    #22055

    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #22219

    area97
    Participant

    thanks alot. it works perfectly.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.