-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththank-you.php
29 lines (25 loc) · 1.18 KB
/
thank-you.php
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
<div class="announcement-wrapper">
<div class="announcement-header">
<h1>Thank You</h1>
</div>
</div>
<div class="announcement-wrapper">
<div class="thank-you-message"><?php echo $_REQUEST["thx"]; ?></div>
<div class="thank-you-link"><?php
// share answer
if (isset($_REQUEST["s-sa"])) {
echo "<a href=\"".getUrl("share-answer/".$_SESSION['a_selectedAnsweredTopic']['id'])."\">Share answer with someone else?</a>";
// give answer
} elseif (isset($_REQUEST["s-ga"])) {
echo "<a href=\"".getUrl("give-your-answer/".$_SESSION['a_selectedAnsweredTopic']['id'])."\">Answer another question?</a>";
// ask friend
} elseif (isset($_REQUEST["s-af"])) {
echo "<a href=\"".getUrl("ask-a-friend/".$_SESSION['a_selectedAnsweredTopic']['id'])."\">Ask another friend for their answer?</a>";
// suggest topic
} elseif (isset($_REQUEST["s-st"])) {
echo "<a href=\"".getUrl("suggest-a-topic/".$_SESSION['a_selectedAnsweredTopic']['id'])."\">Suggest another topic?</a>";
// do nothing if buying book or getting newsletter
} else {
}
?></div>
</div>