-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpayment.php
More file actions
30 lines (26 loc) · 764 Bytes
/
Copy pathpayment.php
File metadata and controls
30 lines (26 loc) · 764 Bytes
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
<?php
session_start();
if (!isset($_SESSION["user"]) || $_SESSION["user"]["role"] !== "student") {
die("Access denied");
}
?>
<!DOCTYPE html>
<html>
<head>
<title>Make Payment</title>
</head>
<body>
<h2>Make Payment</h2>
<form action="process_payment.php" method="POST">
<label>Amount (USD)</label><br>
<input type="number" step="0.01" name="amount" required><br><br>
<label>Payment Method</label><br>
<select name="method" required>
<option value="bank_transfer">Bank Transfer</option>
<option value="mobile_money">Mobile Money</option>
<option value="card">Credit/Debit Card</option>
</select><br><br>
<button type="submit">Submit Payment</button>
</form>
</body>
</html>