Hi i know our good friend John Linhart published a post on Medium about it
But like me there are so many user that are not programmer…
So if we can be more clear in the steps to make our beautiful app Mautic work in our company and have a space in our hearts please lets try to figure out a way to do it.
Here is the script code publish by John.
$data = array('mauticform' => $data); // Change [path-to-mautic] to URL where your Mautic is $formUrl = 'http://[path-to-mautic]/form/submit?formId=' . $formId; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $formUrl); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data)); curl_setopt($ch, CURLOPT_HTTPHEADER, array("HTTP_X_FORWARDED_FOR: $ip")); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); curl_close($ch); return $response;
Now we wanna know what field we have to change to make this beutifull script code work for us.