Send Data to Custom URL
This feature acts like a webhook, and allows you to send the form data in a structured format to another URL, which could be on another site. This is not the same as redirecting the user to another URL.
This setting will send all our form data to the URL http://example.com/handler.php each time a user submits the form. To test if this is working, we could use this snippet of code in the handler.php file:
<?php file_put_contents('test.txt', json_encode($_REQUEST) ); ?>
For the POST (JSON) method, use this code:
<?php file_put_contents('test.txt', file_get_contents('php://input') ); ?>
If our code worked, a file named test.txt would be created with content like:
{"Entry_ID":"360","Name":"Jack Brown","Age":"32"}