add new form and nav interactions
This commit is contained in:
@@ -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();
|
||||
}
|
||||
Reference in New Issue
Block a user