I tried to implement WebHook and used PHP script to process form data.
- Here is an example of PHP script I tested to process data in JSON format
data = json\_decode(_POST[‘data.json’]);
$email=$data->email[0];
$company_name=$data->company_name[0];
$contact_name=$data->contact_name[0];
Unfortunately, this test didn’t work. Any ideas what is wrong with the script above?
- This is an example of script to process other parameters
page\_id=_POST[‘page_id’];
page\_url=_POST[‘page_url’];
variant=_POST[‘variant’];
It works fine.