'https://globaltravelexchange.com/gtxwebservices/website-lead',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>
array(
'PlanType' => '1',
'salution' => '1',
'FirstName' => 'Mangal',
'LastName' => 'Katiyar',
'Email' => 'abc@abc.com',
'MobileNumber' => '1231231231',
'leadsource' => 'Website',
'FromDestination' => 'Delhi',
'Destination' => 'Mumbai',
'noOfDays' => '2',
'PKGCheckInDate' => '11/11/2023',
'PKGCheckOutDate' => '11/11/2023',
'NoOfAdult' => '2',
'NoOfChild' => '0',
'budget' => '1000',
'TourType' => 'One Way',
'Purpose' => '',
'message' => ''
),
CURLOPT_HTTPHEADER => array(
'SecurityKey:6F6D14C7-8D96-4B2D-A517-04F80D6BB7A0'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
Input Value:
'PlanType' => '1', [Use the Given Values from below data]
'salution' => '1', [Use the Given Values from below data]
'FirstName' => 'Mangal', [Text Field]
'LastName' => 'Katiyar', [Text Field]
'Email' => 'abc@abc.com', [Email Value]
'MobileNumber' => '1231231231', [Mobile Numebrs]
'leadsource' => 'Website', [Text Field]
'FromDestination' => 'Delhi', [Text Field]
'Destination' => 'Mumbai', [Text Field]
'noOfDays' => '2', [Text Field]
'PKGCheckInDate' => '11/11/2023',
'PKGCheckOutDate' => '11/11/2023',
'NoOfAdult' => '2', [Number]
'NoOfChild' => '0', [Number]
'budget' => '1000', [Text Field]
'TourType' => 'One Way', [Text, You can keep Dropdown as well]
'Purpose' => '', [Text – Can have your own input fields]
'message' => '' [Text to be used in Remarks]