Your code is incorrect in that case. What your code is doing is send a post body field to a 3rd party service. That's not gong to work.
If you dump the $entry object in your code, you will see the names of all the fields and the data which was collected. You can send all those fields to thirdparty.com, if you want, but that is probably not what you mean to do. You probably have specific parameter names the 3rd party is looking for (for example, they probably want to see "name" rather than "input_1_3" or something.
You will have to map the captured data from the entry to the specific parameter names that your 3rd party service wants to see.
There is not an easy way to get all fields from all entries on all forms, including new forms, with just one function.
Posted 12 years ago on Sunday February 24, 2013 |
Permalink