Great that stopped the error.
Now I'm trying to post after submission to a third party. I want to pass name, phone, and email address. DO I need to edit this in the form_display.php file? Here is the code I was going to use.
add_action('gform_after_submission_4', 'post_to_third_party', 10, 2);
function post_to_third_party($entry, $form) {
$post_url = 'http://s638200148.t.eloqua.com/e/f2';
$body = array(
'first_name' => $entry['1.3'],
'last_name' => $entry['1.6'],
'phone' => $entry['2'],
'email' => $entry['3']
);
$request = new WP_Http();
$response = $request->post($post_url, array('body' => $body));
}
Posted 12 years ago on Wednesday August 22, 2012 |
Permalink