-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathComplete.php
More file actions
29 lines (22 loc) · 1.24 KB
/
Copy pathComplete.php
File metadata and controls
29 lines (22 loc) · 1.24 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
<?php session_start();?>
<?php include("./Lab4Common/Header.php")?>
<?php
$customerInfo = $_SESSION["customerInfo"];
?>
<div class="container" style="padding:30px; margin-top:40px;">
<?php if(!isset($_SESSION["customerInfo"])):?>
<h1>Thank you, for using our deposit calculation tool!</h1>
<?php else:?>
<?php $customerInfo = $_SESSION["customerInfo"];?>
<h1>Thank you <?php echo ", <span class='text-primary'>" . $customerInfo["nameInfo"] . "</span>,"; ?> for using our deposit calculation tool!</h1>
<div class="div-success">
<?php if($customerInfo["contactMethodInfo"] == "phone"): ?>
<p>Our customer service department will call you tomorrow <?php for ($i = 0; $i < count($customerInfo["contactTimeInfo"]); $i++) { if ($i < count($customerInfo["contactTimeInfo"]) - 1) { echo $customerInfo["contactTimeInfo"][$i] . " or "; continue; } echo $customerInfo["contactTimeInfo"][$i]; } ?> at <?php echo $customerInfo["phoneInfo"]; ?>.</p>
<?php elseif($customerInfo["contactMethodInfo"]=="email"):?>
<p>An email about the details of our GIC has been sent to <?php echo $customerInfo["emailInfo"]; ?></p>
<?php endif;?>
</div>
<?php endif;?>
</div>
<?php session_destroy();?>
<?php include("./Lab4Common/Footer.php")?>