Form data needs to be pushed to a CRM... How/where to start?

I have a self-processing PHP form that, upon simple validation of a few fields, mails the results to a sales team. No database on this site.

I need to push the data to a CRM service and they do give a HTTP POST request sample like this:


POST /crm-service-provider-site/ HTTP/1.1
Host: mysitename.crm-service-provider-site
Content-Type: application/x-www-form-urlencoded
Content-Length: length

clientID=string&centerID=string&username=string&password=string.....etc....

How do I add this to my form? And how to generate the length of the content? (Had to strip .com’s as per forum regs)

TIA!

ETA: SOAP is also offered though I have not yet learned it. But if it’s the better solution and the learning curve isn’t too steep I am interested.

Check out Lorna Mitchell’s post entitled '[URL=“http://www.lornajane.net/posts/2010/Three-Ways-to-Make-a-POST-Request-from-PHP”]Three Ways to Make a POST Request from PHP’.

To be fair, check out the comments too! :wink: