-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.php
43 lines (37 loc) · 1.37 KB
/
index.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
<?php
session_start();
if (!isset($_SESSION['user_id'])) {
// Kullanıcı girişi yapılmadıysa, giriş sayfasına yönlendir
header("Location: login.php");
exit();
}
?>
<!DOCTYPE html>
<html lang="tr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Bayi Ödeme Formu</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="payment-form">
<h2>Online Ödeme Formu</h2>
<form id="paymentForm" action="checkout.php" method="post">
<label for="amount">Ödeme Miktarı:</label>
<div class="input-group">
<input type="number" id="amount" name="amount" min="0" step="0.01" placeholder="Ödeme miktarını girin" required>
</div><br><br>
<label for="name">İsim:</label>
<input type="text" id="name" name="name" placeholder="İsim" required><br><br>
<label for="surname">Soyisim:</label>
<input type="text" id="surname" name="surname" placeholder="Soyisim" required><br><br>
<label for="phone">Telefon Numarası:</label>
<input type="tel" id="phone" name="phone" placeholder="05XXXXXXXXXX" required><br><br>
<input type="submit" value="Ödemeyi Yap">
</form>
<div id="message" class="hidden"></div>
</div>
<script src="script.js"></script>
</body>
</html>