# Post results to another form

**URL:** <https://forum.mautic.org/t/post-results-to-another-form/7932>\
**Category:** Product Support\
**Created:** [March 14, 2017, 2:00pm UTC](https://forum.mautic.org/t/post-results-to-another-form/7932 "2017-03-14T14:00:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![cdevogt](https://avatars.discourse-cdn.com/v4/letter/c/3e96dc/32.png) [@cdevogt](https://forum.mautic.org/u/cdevogt)\
**Post date:** [March 14, 2017, 2:00pm UTC](https://forum.mautic.org/t/post-results-to-another-form/7932/1 "2017-03-14T14:00:42Z")

</div>

Hi,  
  
  
  
Is there anybody who can tell me how the functionality of ‘post results to another form’ works?  
  
I’ve created a form in Mautic with five text fields. Under ‘actions’ =\> ‘Add a submit action’ i selected ‘post results to another form’.  
  
  
  
As the ‘post URL’ i set [https://www.domain.com/external.php](https://www.domain.com/external.php)  
  
  
  
The contents of external.php is at the moment just as plain as

\<?php  
var\_dump($\_REQUEST);  
?\>  
  
But still i'm not able to read the values of the form submission.  
  
Any help i appreciated.  
  
~ Chris

---

<div class="post-metadata">

**Author:** ![cdevogt](https://avatars.discourse-cdn.com/v4/letter/c/3e96dc/32.png) [@cdevogt](https://forum.mautic.org/u/cdevogt)\
**Post date:** [March 14, 2017, 2:00pm UTC](https://forum.mautic.org/t/post-results-to-another-form/7932/2 "2017-03-14T14:00:42Z")

</div>

Hi,

Is there anybody who can tell me how the functionality of ‘post results to another form’ works?  
I’ve created a form in Mautic with five text fields. Under ‘actions’ =\> ‘Add a submit action’ i selected ‘post results to another form’.

As the ‘post URL’ i set [https://www.domain.com/external.php](https://www.domain.com/external.php)

The contents of external.php is at the moment just as plain as

\<?php var\_dump($\_REQUEST); ?\> 

But still i’m not able to read the values of the form submission.

Any help i appreciated.

~ Chris

---

<div class="post-metadata">

**Author:** ![JonT](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@JonT](https://forum.mautic.org/u/JonT)\
**Post date:** [March 14, 2017, 5:23pm UTC](https://forum.mautic.org/t/post-results-to-another-form/7932/3 "2017-03-14T17:23:27Z")

</div>

Not used this function myself so not sure how Mautic sends the data but I use this to grab post data from Stripe webhooks…

$input = @file\_get\_contents(“php://input”);  
$post\_json = json\_decode($input);

Not sure if it helps…

---

<div class="post-metadata">

**Author:** ![cdevogt](https://avatars.discourse-cdn.com/v4/letter/c/3e96dc/32.png) [@cdevogt](https://forum.mautic.org/u/cdevogt)\
**Post date:** [April 13, 2017, 8:47am UTC](https://forum.mautic.org/t/post-results-to-another-form/7932/4 "2017-04-13T08:47:46Z")

</div>

Nope, that doesn’t work for me. Is there anybody who has a working ‘post to other form’ implementation?

~Chris

---

<div class="post-metadata">

**Author:** ![Huckleberry](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/huckleberry/32/535_2.png) [@Huckleberry](https://forum.mautic.org/u/Huckleberry)\
**Post date:** [July 12, 2017, 1:44am UTC](https://forum.mautic.org/t/post-results-to-another-form/7932/5 "2017-07-12T01:44:44Z")

</div>

I’m looking into this now.  
I was thinking it’d be useful to combine with Dynamic Content to create an instant, custom Microsite the user is redirected to.  
Specifically, the redirect landing page would receive form results via the “Post to Other Form” method (hidden values that are accessible). Based on answers to questions X/Y/Z, the appropriate dynamic content could be pulled and assemble a customized microsite right away to the user.  
I’m thinking this is going to be alot of work, so any community input would be greatly appreciated.  
I’ll keep you posted if I figure out the answer to “Post to Other Form” that we’re actually discussing here in this thread.  
Cheers!

---

<div class="post-metadata">

**Author:** ![lex\_van\_sonderen](https://avatars.discourse-cdn.com/v4/letter/l/b9bd4f/32.png) [@lex\_van\_sonderen](https://forum.mautic.org/u/lex_van_sonderen)\
**Post date:** [July 31, 2017, 2:45pm UTC](https://forum.mautic.org/t/post-results-to-another-form/7932/6 "2017-07-31T14:45:30Z")

</div>

Hi Chris,

Tested with [https://requestb.in](https://requestb.in) and it seems to work:

1. create a requestbin by going to [https://requestb.in](https://requestb.in), then you get a URL in the form ‘[https://requestb.in/XYZ](https://requestb.in/XYZ)’
2. create a form in Mautic
3. add a ‘submit action’ of type ‘Post results to another form’ and enter ‘[https://requestb.in/XYZ](https://requestb.in/XYZ)’ in the ‘Post URL’
4. create a landingpage in Mautic using that form
5. submit the form
6. refresh the ‘[https://requestb.in/XYZ](https://requestb.in/XYZ)’

You will see the entered information plus the information Mautic has collected of the user:

mautic\_contact[country]: Netherlands  
mautic\_form[id]: 17  
mautic\_contact[state]: North Brabant  
mautic\_contact[email]: [REMOVED]  
mautic\_form[name]: lextest2users  
mautic\_contact[lastname]: [REMOVED]  
mautic\_contact[city]: 's-Hertogenbosch  
mautic\_contact[nickname]: lex test  
mautic\_contact[firstname]: Lex Test  
mautic\_contact[id]: 3441  
mautic\_form[url]: [REMOVED]  
f\_name: lex test  
mautic\_contact[company]: [REMOVED]  
mautic\_contact[timezone]: 31  
email: [REMOVED]  
HEADERS

Host: requestb.in  
Connection: close  
Connect-Time: 0  
Cf-Visitor: {“scheme”:“https”}  
Accept-Encoding: gzip  
Content-Length: 581  
Via: 1.1 vegur  
Total-Route-Time: 0  
Cf-Connecting-Ip: 198.20.97.202  
X-Request-Id: a78b45e7-f05d-4c0b-8096-26859851eb7b  
Cf-Ray: 38719790fc7e2c5a-AMS  
Cf-Ipcountry: NL  
User-Agent: GuzzleHttp/6.2.1 curl/7.54.0 PHP/5.6.31  
Content-Type: application/x-www-form-urlencoded  
RAW BODY

mautic\_contact%5Bid%5D=3441&mautic\_contact%5Bfirstname%5D=Lex+Test&mautic\_contact%5Blastname%5D=[REMOVED]&mautic\_contact%5Bcompany%5D=[REMOVED]&mautic\_contact%5Bemail%5D=[REMOVED]&mautic\_contact%5Bcity%5D=%27s-Hertogenbosch&mautic\_contact%5Bstate%5D=North+Brabant&mautic\_contact%5Bcountry%5D=Netherlands&mautic\_contact%5Bnickname%5D=lex+test&mautic\_contact%5Btimezone%5D=31&mautic\_form%5Bid%5D=17&mautic\_form%5Bname%5D=lextest2users&mautic\_form%5Burl%5D=[REMOVED]&f\_name=lex+test&email=[REMOVED]
