Send Data to external Script

Home Forums Quform WordPress Send Data to external Script

This topic is: not resolved
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #30233
    mawa
    Participant

    Is there a solution to get it run. When i do the way is described on the Quform help, my wordpress is not running again after putting the code to the functions php.

    Here is my code:
    add_action(‘quform_post_process_2’, function (array $result, Quform_Form $form){
    $data = array(
    ‘berufskolleg’ => $form->getValue(‘quform_2_150’),
    ‘optional’ => $form->getValue(‘quform_2_151’),
    ‘hochschule’ =>
    ‘anrede’ => $form->getValue(‘quform_2_119’),
    ‘nachname’ => $form->getValue(‘quform_2_90’),
    ‘vorname’ => $form->getValue(‘quform_2_87’),
    ‘land’ => $form->getValue(‘quform_2_182’),
    ‘plz’ => $form->getValue(‘quform_2_155’),
    ‘strasse’ => $form->getValue(‘quform_2_154’),
    ‘ort’ => $form->getValue(‘quform_2_156’),
    ‘geburtsdatum’ => $form->getValue(‘quform_2_180’),
    ‘telefon’ => $form->getValue(‘quform_2_157’),
    ‘e_mail’ => $form->getValue(‘quform_2_23’),
    ‘comment’ => $form->getValue(‘quform_2_15’),
    ‘kontaktwunsch’ => $form->getValue(‘quform_2_152’),
    ‘newsletter’ => $form->getValue(‘quform_2_184’)
    );

    wp_remote_post(‘https://xxxxxxxxx/wpform.php’, array(
    ‘body’ => $data
    ));

    return $result;
    }, 10, 2);

    I use WordPress with Divi all actual Versions.

    #30255
    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.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy