Home › Forums › Quform WordPress › Send Data to external Script
- This topic has 1 reply, 2 voices, and was last updated 4 years, 5 months ago by Ally.
- AuthorPosts
- November 15, 2019 at 11:09 am #30233mawaParticipant
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.
November 20, 2019 at 9:42 am #30255AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
- AuthorPosts
- You must be logged in to reply to this topic.