Hi,
Yesterday we bought the newsletter plugin. Im trying to set a preference (which I made before in the admin interface) with a custom form.
An account is being created, so everything seems to work, except that the preference is not set.
It’s a Gravity form. With Gravity, you can pass on data after the form is sent, because initially the form is used for something else.
I set up the following:
$body = array(
‘nn’ => rgar( $entry, ‘2’ ),
‘ns’ => rgar( $entry, ‘3’ ),
‘ne’ => rgar( $entry, ‘4’ ),
‘nl[]’ => rgar( $entry, ‘5’ ),
);
$request = new WP_Http();
$response = $request->post( $post_url, array( ‘body’ => $body ) );
Is this the correct way to set a preference, via “nl[]”? Or “nl[1]”?
Strange thing is, I tried both, but none of them are working.
Thank you in advance.
Kind regards,
Bas