Advertisement
Guest User

Untitled

a guest
Nov 1st, 2014
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. function post_to_third_party($entry, $form) {
  2.  
  3. $post_url = 'http://www.autoresponder.com/subscribe';
  4. $body = array(
  5. 'email' => $entry['2'],
  6. 'Niche' => $entry['5'],
  7. 'Date' => $entry['4'],
  8. 'IPaddress' => $entry['6'],
  9. 'list' => 'autoresponderlistID'
  10. );
  11.  
  12. $request = new WP_Http();
  13. $response = $request->post($post_url, array('body' => $body));
  14.  
  15. function post_to_third_party($entry, $form) {
  16.  
  17. $post_url = 'http://www.cpvlabs.com/base3.php?id=xxx';
  18. $body = array(
  19. 'click' => $click-through, <---Not sure if this is possible
  20. );
  21.  
  22. $request = new WP_Http();
  23. $response = $request->post($post_url, array('body' => $body));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement