[development] Using the Forms API to post information to an external source

Brian Vuyk brian at brianvuyk.com
Tue Aug 25 16:34:34 UTC 2009


Hello all.

For one of my clients, we have a long multistep form that we use to 
collect information for a user and enroll him / her in a course. One 
thing we would like to do is POST some information to an external API.

Is it possible, using the FAPI, to POST data to an external source? I 
was going to user $form['#method'], however, that only allows internal 
paths.

Worst case scenario, I could create a custom submit callback which POSTS 
the data over using CURL, but I am hoping to find a more elegant solution.

Any suggestions?

Thanks in advance,

Brian


More information about the development mailing list