Custom form need to post to the existing Marketo | Community
Skip to main content
August 17, 2015
Question

Custom form need to post to the existing Marketo

  • August 17, 2015
  • 1 reply
  • 2026 views

Hi Guys,

I need to add custom form (custom html and css form) in website and it will submit data to marketo and redirect to a custom success page .

So can you guys help me to integrate the api to submit data to marketo in "PHP" . I read the topics in communities but they are confusing. I just need to submit that form data to marketo.  

Any help would be appreciated .

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

SanfordWhiteman
Level 10
August 17, 2015

Greg, the server-side form post instructions should be clear if you have some PHP experience.

However, I doubt you need to use a server-side language at all.  If your data is coming in from a custom HTML form, you can use the Forms 2.0 API to cross-post data to Marketo at the same time that it posts to your website (or instead of posting to your website).  This is more scalable and maintainable than building rate-throttled back-end code.

For more insight I would read this Community post​ and the accompanying demo code: MktoForms2 :: StdForm to MktoForm

Jessica_Cross1
Level 4
August 18, 2015

The documentation Sanford linked to shows exactly how to make this happen. You build a custom form in marketo, find the ID of that form. That number is used when you POST the lead capture information to Marketo.