How to connect webhook to a php based landing page

Your Workflow URL
https://connect.pabbly.com/workflow/mapping/IjU3NjcwNTZmMDYzMjA0MzU1MjZkNTUzNjUxMzci_pc
Your Task History ID
IjU3NjcwNTZmMDYzMjA0MzU1MjZkNTUzNjUxMzci_pc
Consent to Access & Modify
I authorize Pabbly Support to log in to my account and make changes to the specified workflow for troubleshooting.
I want to use Pabbly Connect to connect my landing page leads to a google sheet. My landing page is made using php and html. How and where do i put in the pabbly webhook url on my website?
 

Hrishabh.pabbly

Member
Staff member
Hello @beginnersworld02 ,

Thank you for reaching out.

To connect your landing page to Pabbly Connect, you need to provide the Pabbly Connect webhook URL to your website developer or the person who created your landing page. They will be able to integrate the webhook into your PHP/HTML website so that all lead submissions are sent directly to your Google Sheet via Pabbly Connect.
 
Hi, i sent the code to our developer but unfortunately he doesn't seem to know where exactly to put in the webhook url. Was hoping you could offer us some guidance on that.
 

Preeti Paryani

Well-known member
Staff member
Hi @beginnersworld02,

You need to add the Pabbly webhook URL in the PHP file that handles your form submission (for example: submit.php or process.php).

In simple terms, after the form is submitted, a POST request should be sent to the webhook URL with the form data.

Example:
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {

$data = [
"name" => $_POST['name'],
"email" => $_POST['email']
];

$webhook_url = "YOUR_PABBLY_WEBHOOK_URL";

$options = [
"http" => [
"header" => "Content-Type: application/json",
"method" => "POST",
"content" => json_encode($data)
]
];

$context = stream_context_create($options);
file_get_contents($webhook_url, false, $context);
}
?>

So, please ask your developer to send the form data to the webhook URL right after form submission.

Once done, you can submit a test entry and capture the response in Pabbly.
 
Top