Webhook PHP Script Examples

Last Update: January 3, 2017

If you're already familiar with JotForm Webhook, here are example scripts that you may want to try.


Note: Make sure to update the field names on these scripts with the field names from your form. 

1. Instant Email Notification - Get instant email notification using your email sending server


Sample Email Result:


2. SMS Notification - Send SMS after form submission using your SMS Provider's API.

Code: http://pastebin.com/embed_iframe/0A558v0y


3. Form to MySQL - Send form data to your MySQL Database

Code: http://pastebin.com/embed_iframe/ERPvnqJw

We will post more examples from time to time. If you have any suggestions or if you need help with Webhook, feel free to post it below.

Demo: https://form.jotform.com/62893435003959 (check thank you page details to view the result)

4. Bounce Notifier - Get notified when submission failed to be sent into your recipient email.


Code: https://pastebin.com/embed_iframe/uSsnsehh

Note: Make sure to add the from and to emails as well as your JotForm API Key in the code.
Important: This code requires the PHP Client Library from the JotForm API page (or you can download it here). Place the JotForm.php file within the same folder containing your bounce notifier php file.


2 Comments...


   
Atbam (February 10, 2015 at 04:40 AM)

Seems Good will try it


   
malik112 (April 13, 2016 at 08:07 AM)

How to send post data using webhook?

View Answer


Send Comment