Redirect to interstitial when form submitted to prevent erronous resubmission.

This commit is contained in:
Fred Boniface 2022-09-21 10:16:12 +01:00
parent 0085db0364
commit 9948a25832
2 changed files with 43 additions and 0 deletions

View File

@ -29,6 +29,9 @@
// Call POST function
sendInput($title,$body);
// Redirect to submit-done.php
echo "<script>setTimeout(function()){window.location.href = '/submit-done.php';}, 5000);</script>"
}
?>

40
submit-done.php Normal file
View File

@ -0,0 +1,40 @@
<!DOCTYPE html>
<html>
<head>
<?php include './page-blocks/headers.php';?>
<title>Sent</title>
</head>
<body>
<!-- Popup Menu -->
<?php require "./page-blocks/nav-menu.php";?>
<!-- Main Content Begins -->
<?php require "./page-blocks/title-image.php";?>
<br>
<h1>Report Submitted</h1>
<div class="text-description">
<p>Thanks for your report or suggestion.</p>
<p>You're helping to make Athena better for everyone.</p>
<br>
<br>
<p>You will be redirected to the homepage in five seconds.</p>
</div>
<script>
setTimeout(function()){
window.location.href = '/';
}, 5000);
</script>
<!-- Footer -->
<?php include "./page-blocks/footer.php" ?>
</body>
</html>