-
Notifications
You must be signed in to change notification settings - Fork 0
/
pay_bill.php
90 lines (72 loc) · 2.4 KB
/
pay_bill.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<?php include_once('lib/header.php'); require('functions/alert.php'); require('functions/users.php'); require('functions/token.php');
?>
<title> Pay Bill | SNGH: Hospital of the Ignorant </title>
</head>
<body>
<?php
include_once('lib/menu.php');
?>
<div class="header">
<h3> Pay Bill </h3>
</div>
<!-- Some instructions before form-->
<div class="content">
Pay for appointment <br />
</div>
<!-- form begins here -->
<form method="POST" action="processpaybill.php">
<?php
//Check if error/message is available and print it out
error(); message();
session_destroy();
?>
<input
<?php
if(user_is_logged_in() || isset($_SESSION['full_name'])) {
echo "value='" . $_SESSION['full_name'] . "'" ;
}
?>
type="hidden" name="full_name" />
<div class="input-group">
<p>
<label> Email </label>
<input
<?php //Check for and display email
if(isset($_SESSION['email']) && !empty($_SESSION['email']) ){
echo "value='" . $_SESSION['email'] . "'";
}
?>
type="text" name="email" placeholder="Email" /> <br />
</p>
</div>
<div class="input-group">
<p>
<label> Select Department </label>
<select name="department" >
<option value=""> Select One </option>
<option> Blood Lab </option>
<option> X-ray Lab </option>
</select>
</p>
</div>
<div class="input-group">
<p>
<label> Enter Amount </label>
<input
<?php
//Check if Email is available after error message (ie if initially inputed by user) and hold it in
if(isset($_SESSION['amount'])){
echo "value=" . $_SESSION['amount'];
}
?>
type="number" name="amount" placeholder="₦" /> <br />
</p>
</div>
<button type="submit" class="btn btn-success" >Pay Now</button>
</form>
<!-- onClick="payWithRave()" -->
<?php
include_once('lib/footer.php');
?>
</body>
</html>