Reply To: Help with Filters

Could you help me set this up? I’m a little confused….

I have a Gravity form in this page:
http://www.estudiodot.com.br/village/teste/

And need to post the field NAME to your Booking Form in this page:
http://www.estudiodot.com.br/village/book-now/

I have this code in my functions. Its a function GRavity Forms have to POST data:


add_action('gform_after_submission_1', 'post_to_third_party', 10, 2);
function post_to_third_party($entry, $form) {

$post_url = 'http://www.estudiodot.com.br/village/book-now/';
$body = array(
'thename' => $entry['1']
);

$request = new WP_Http();
$response = $request->post($post_url, array('thename' => $body));

}

Could you have a look if I using the correct code? Should I use “thename” as variable???

Thanks so much!