Posting to a third party web form


(Mark Garrett) #1

Hi group,

Long time reader, first time poster.

I’m working on a project to SEND contact information from Infusionsoft to a JV Partner’s system via their web form.

Scenario:

  1. Visitor to website fills out form to register for webinar and becomes an infusionsoft contact.

  2. Infusionsoft contact watches the webinar and is then invited to join Partner’s webinar (curently process requires them to fill out a web form on partner’s site - currently 75% drop off from click to partner’s form completion)

  3. Contact clicks on a button in the email which sends data to partner’s web form via an http post.

  4. Contact is now registered in Partner’s CRM (not infusionsoft - something custom)

I have read that I can do this using an http post however, it’s not working and someone suggested I write an api script to send this contact data. I’m only sending Name and Email address.

Should be simple but… apparently not for me.

Any help or recommendations to a link I haven’t found would be great.

Thanks
Mark


(John Borelli) #2

@Mark_Garrett

It’s a bit difficult to advise because we don’t know your level of understanding to this point of the process and what you know about programmming (presumably in php?) and the process of sending and then receiving form data/parameters etc. Also, there are three versions of the api to use and they all have differences in there use.


(Mark Garrett) #3

Thanks John,

ICC with 7 years experience and very strong skills with IFS and CB,

As for programming, not so much. I’m great at following directions and editing something already in place.

Right now, I have been able to copy their landing page code onto a page I host so I have complete access to the page, and the hosted form within that page.

I also have a campaign built out with an HTTP post which is trying to write to the form.

The Post URL I’m using is the form url http://webiste.com/postlead.php
and I have stripped out the variables required such as name, email, partner id (a fixed partner id field 1234)

I was told I can put a script in the directory containing the page with the hosted form which the infusionsoft HTTP post can call which will then right to the web form.

One thing also someone pointed out is that the hosted form uses
method=“get”

Does this make sense?

Thanks
Mark


(John Borelli) #4

ok so as far as the get method goes, within IS you will have to provide your parameters on the url line. So in your case it would be something like http://mydomain.com/postlead.php?email=my@email.com&firstName=Joe

That is to say that using the parameter list found in IS http post under the url will send is as a POST request method rather than a GET.

The PHP script would need to receive the data from the post then using _GET['email'] and _GET[‘firstName’] there should be an underscore between $ and GET (just going with the current example but the parameter names can be what you make them).

From that point forward it would be all about taking that information and running an api method.

The different api methods require different authentication and have other details that would vary in use, however.


(Mark Garrett) #5

Thanks…

ok so would that be like this

http://mydomain.com/postlead.php?_GET['email']=~Contact.Email~&_GET[‘Name’]=~Contact.FirstName~


(Mark Garrett) #6

something like this:


(John Borelli) #7

The $(underscore)GET is in your code. The url is email=value&name=value

so replace the name/email values with the merge codes


(Mark Garrett) #8

Thanks @John_Borelli,

ok, so I might be missing something here…

Do I only have to do this in the HTTP Post url
http://mydomain.com/postlead.php?email=~Contact.Email~&name=~Contact.FirstName~

like this… https://www.screencast.com/t/fIjGi3b1o10r

OR

Do I have to create a php file? if so, how do I do this?

The current url http://mydomain.com/postlead.php is the url I received from an inspection of the hosted form.

I have also looked at this code here…

so, not exactly sure what i need to do next.


(John Borelli) #9

@Mark_Garrett

So the url is now correct. You don’t need all the parameter names in the list underneath as they are past through the url (although it shouldn’t “hurt” anything). As to the php script it points to, yes it would require receiving that information and with code, using the api to do anything with it.

Going by your questions, that is a much bigger matter to explain as it amounts to teaching someone how to program in PHP. In the context of this forum, the best I can do is to point you to some examples and documentation.

https://developer.infusionsoft.com/docs/xml-rpc/


(Mark Garrett) #10

thanks for your help…