Redirect to interstitial when form submitted to prevent erronous resubmission.
This commit is contained in:
parent
0085db0364
commit
9948a25832
@ -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
40
submit-done.php
Normal 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>
|
Reference in New Issue
Block a user