Psyduck - 可達鴨 之 鴨力山大

Current Path : home/irplbiz/public_html/suite_crm/
Upload File :
Current File : /home/irplbiz/public_html/suite_crm/index.php

<?php 
include("db_crm_synch.php");

if(isset($_POST['submit'])){
    $first_name = $_POST['first_name'];
    $last_name = $_POST['last_name'];
    $email = $_POST['email'];
    $phone = $_POST['phone'];
    $message = $_POST['message'];

    $webpage_name = "Index Page";  // assign your web page name
    $webpage_section = "Index Page Form"; // assign your inquiry form name
    $lead_origin = "API"; // indicate lead created from API call to suite crm

    $arrParam = array('first_name' => $first_name, 'last_name' => $last_name, 'email' => $email, 'phone' => $phone, 'message' => $message, 
                      'webpage_name' => $webpage_name, 'webpage_section' => $webpage_section, 'lead_origin' => $lead_origin );
    insert_enquiry ($arrParam);
}

?>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Demo Form</title>
</head>
<body>
    <h2>Contact Form</h2>
    <form action="" method="POST">
        <label for="first_name">First Name:</label><br>
        <input type="text" id="first_name" name="first_name" required><br><br>

        <label for="last_name">Last Name:</label><br>
        <input type="text" id="last_name" name="last_name" required><br><br>

        <label for="email">Email:</label><br>
        <input type="email" id="email" name="email" required><br><br>

        <label for="phone">Phone:</label><br>
        <input type="text" id="phone" name="phone" required><br><br>

        <label for="message">Message:</label><br>
        <textarea id="message" name="message"></textarea><br><br>

        <input type="submit" id="submit" name="submit" value="Submit">
    </form>
</body>
</html>