The CRM we are using is Eloqua, which has 3 basic options on posting form data:
- Use the Eloqua landing page to post to the CRM directly
- Create the form on your site, but set the form action as the Eloqua URL
- Reposting
- Post to your DB first, the code a repost to the Eloqua CRM
- Post to Eloqua CRM first, then repost to your DB
After looking more into the options of the CRM, there is an option that after posting to Eloqua, it will repost the data to your site landing page (I just didn't see that option when first creating the form)
So, on my site, I created the form with all styling and used the action of the CRM, then I set a repost action to a non-indexed page with a duplicate of the form using FormIT and a custom created snippet as the first action that posted my data to my external DB, and a hook for a redirect to a thank you page.