-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathanswer_success.php
More file actions
33 lines (31 loc) · 1.05 KB
/
answer_success.php
File metadata and controls
33 lines (31 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
session_start();
$currentPage = 'Submitted!';
$ROOT_PATH = '.';
require_once('config.php');
if(!isset($_GET['id'])) {
header('Location: ' . DOMAIN . 'form_error.php?error_code=1');
}
?>
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<?php require_once('elements/header.php'); ?>
</head>
<body>
<?php require_once('elements/navbar.php'); ?>
<div class="container">
<div class="jumbotron">
<h1 class="display-4">Answer Submitted!</h1>
<p class="lead">Share the form!</p>
<hr class="my-4">
<a class="btn btn-primary mb-2" href="<?php echo DOMAIN; ?>" role="button">Home</a>
<a class="btn btn-primary mb-2" href="<?php echo DOMAIN; ?>dashboard.php" role="button">Dashboard</a>
<button type="button" class="btn btn-primary mb-2" onclick=share_form(<?php echo $_GET['id']; ?>)>Share</button>
</div>
</div>
<?php require_once('elements/auth.php'); ?>
<?php require_once('elements/share_form.php'); ?>
<?php require_once('elements/footer.php'); ?>
</body>
</html>