add new form and nav interactions

This commit is contained in:
BenjaminToby
2021-06-20 08:02:27 +01:00
parent 29e4824079
commit 1296ddbe79
119 changed files with 13824 additions and 56 deletions
+19
View File
@@ -0,0 +1,19 @@
<?php
function redirectWithError($error)
{
$_SESSION['_contact_form_error'] = $error;
header('Location: '.$_SERVER['HTTP_REFERER']);
echo "Error: ".$error;
die();
}
function redirectSuccess()
{
$_SESSION['_contact_form_success'] = true;
header('Location: '.$_SERVER['HTTP_REFERER']);
echo "Your message was sent successfully!";
die();
}