芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/denimandazul.com/submit.php
0) { // Email already exists $_SESSION['msg'] = "Email already exists! Please choose a different email."; } else { // Insert the new record into the database $sql = "INSERT INTO denimandazul_contact (fullname, contact, email) VALUES ('$fullname', '$contact', '$email')"; if (mysqli_query($conn, $sql)) { $_SESSION['msg'] = "THANK YOU FOR YOUR SUBMISSION."; } else { $_SESSION['msg'] = "Error: " . mysqli_error($conn); } // Redirect to the same page to avoid form resubmission header("Location: " . $_SERVER['PHP_SELF']); exit(); } } // Retrieve and clear the message from the session $msg = $_SESSION['msg'] ?? ''; unset($_SESSION['msg']); // Close connection mysqli_close($conn); ?>
Denim and Azul | Thank You
Your browser does not support the video tag.
You will be redirected shortly...