Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Gform after submission
- add_action('gform_after_submission', 'post_to_third_party', 10, 2);
- function post_to_third_party($entry, $form) {
- $post_url = 'http://www.clientservices.us/TowerMedia/Post.aspx';
- $body = array(
- 'name' => $entry['1'],
- 'street_address' => $entry['4'],
- 'city' => $entry['5'],
- 'state' => $entry['6'],
- 'zip_code' => $entry['7'],
- 'phone' => $entry['3'],
- 'date' => $entry['8'],
- 'ip' => $entry['9']
- );
- $response = $request->post($post_url, array('body' => $body));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement