-
Notifications
You must be signed in to change notification settings - Fork 1
/
payment.php
42 lines (35 loc) · 1.41 KB
/
payment.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
<link rel="stylesheet" href="css/payment.css" />
<?php
$title = 'Payment';
include 'header.php';
include_once ('./includes/user-config.inc.php');
?>
</header>
<div class="container">
<div class="imgDiv">
<img src="images/payment-methods.png" alt="payment-picture" width="500" />
</div>
<div class="formDiv">
<form action="" method="post">
<?php
require 'includes/database.inc.php';
$mid = $_SESSION["memberID"];
$result = mysqli_query($conn, "SELECT email FROM Member_email WHERE memberID = $mid");
$emails= mysqli_fetch_array($result);
echo '<label for="name">Name:</label>
<input disabled type="text" name="userName" id="name" value = "'.$_SESSION["firstName"].' '.$_SESSION["lastName"].'"/><br />';
echo '<label for="email">Email:</label>
<input disabled type="email" name="email" id="email" value="'.$emails[0].'"/>';
header("location:crdSystem_page.php");
mysqli_close($conn);
?>
<br />
<p>Membership:Premium</p>
<p>Plan:Monthly Subcription</p>
<p>Amount:$19.00</p>
<button type="submit" class="btnPay">Pay Now</button>
</form>
</div>
</div>
<script src="/OEGplay/js/payment.js"></script>
<?php include('./footer.php'); ?>