42 lines
1.1 KiB
PHP
42 lines
1.1 KiB
PHP
<!-- 02-19-2024 Stacy created contact-seller-action.php -->
|
|
<?php
|
|
include "functions.php";
|
|
|
|
$cstm_email = $_SESSION['email'];
|
|
$prd_name = $_POST['product_name'];
|
|
$prd_qnty = $_POST['product_quantityf'];
|
|
$message = $_POST['message'];
|
|
$id = $_POST['product_id'];
|
|
|
|
|
|
$response = contact_Seller(
|
|
$cstm_email,
|
|
$prd_name,
|
|
$prd_qnty,
|
|
$message,
|
|
);
|
|
|
|
$array = json_decode($response,true);
|
|
var_dump($array);
|
|
// header("location: product-left-sidebar.php?id=$id");
|
|
|
|
# 02-20-2024 Stacy added message sent
|
|
// $result = customerExists($_SESSION["email"]);
|
|
if ($response) {
|
|
$_SESSION["SuccessfullySent"] = "Message Sent Successfully";
|
|
header("location: product-left-sidebar.php?id=$id");
|
|
}
|
|
|
|
|
|
#02-19-2024 Stacy added email to be sent to customer
|
|
$response2 = contact_Inquirer(
|
|
$cstm_email,
|
|
);
|
|
$array = json_decode($response2,true);
|
|
var_dump($array);
|
|
header("location: product-left-sidebar.php?id=$id");
|
|
|
|
// if ($response2) {
|
|
// // $_SESSION["SuccessfullySent"] = "Message Sent Successfully";
|
|
// header("location: contact-us.php");
|
|
// }
|