SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Feb 2010
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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:

    Code:
    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.

  2. #2
    Twitter: @AnthonySterling silver trophy AnthonySterling's Avatar
    Join Date
    Apr 2008
    Location
    North-East, UK.
    Posts
    6,111
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Check out Lorna Mitchell's post entitled 'Three Ways to Make a POST Request from PHP'.

    To be fair, check out the comments too!
    @AnthonySterling: I'm a PHP developer, a consultant for oopnorth.com and the organiser of @phpne, a PHP User Group covering the North-East of England.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •