obanana_b2b_test/contact-us-action.php

29 lines
692 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");
2024-02-16 11:05:02 +08:00
# 02-15-2024 Stacy added message sent
2024-02-15 16:12:28 +08:00
$result = customerExists($_SESSION["email"]);
if ($result > 0) {
$_SESSION["SuccessfullySent"] = "Message Sent Successfully";
header("location: contact-us-test.php");
2024-02-16 11:05:02 +08:00
}
# 02-15-2024 Stacy added message sent