obanana_b2b_test/contact-us-action.php

28 lines
630 B
PHP
Raw Normal View History

2024-02-15 09:28:08 +08:00
<?php
include "functions.php";
2024-02-15 09:28:08 +08:00
$fName = $_POST['firstname'];
$lName = $_POST['lastname'];
$email = $_POST['email'];
$phone = $_POST['phonenumber'];
$message = $_POST['message'];
$response = sendEmail(
$fName,
$lName,
$email,
$phone,
$message,
);
$array = json_decode($response,true);
var_dump($array);
2024-02-15 16:12:28 +08:00
header("location: contact-us-test.php");
# message success
$result = customerExists($_SESSION["email"]);
if ($result > 0) {
$_SESSION["SuccessfullySent"] = "Message Sent Successfully";
header("location: contact-us-test.php");
}