-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
176 lines (124 loc) · 6.53 KB
/
index.html
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Prepare FormData for Ajax data passing to backend</title>
<!-- Bootstrap -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css">
</head>
<body>
<div class="container mt-3 w-50">
<div class="card shadow-none" style="border-radius: 15px;">
<h1 class="text-center">Prepare FormData for Ajax data passing to backend</h1>
<form id="form" action="POST" enctype="multipart/form-data">
<div class="card-body">
<div class="row align-items-center pt-1 pb-1">
<div class="col-md-3 ps-3">
<h6 class="mb-0">Full Name:<span class="text-danger">*</span></h6>
</div>
<div class="col-md-9 pe-5">
<input name="fullname" type="text" class="form-control form-control-lg"
placeholder="As per NID" minlength="2" />
</div>
</div>
<hr class="mx-n1">
<div class="row align-items-center pt-1 pb-1">
<div class="col-md-3 ps-3">
<h6 class="mb-0">Shop Name:<span class="text-danger">*</span></h6>
</div>
<div class="col-md-9 pe-5">
<input type="text" name="shop_name" class="form-control form-control-lg"
placeholder="like 'Rafi Telecom'" minlength="2" />
</div>
</div>
<hr class="mx-n1">
<div class="row align-items-center pt-1 pb-1">
<div class="col-md-3 ps-3">
<h6 class="mb-0">Phone Number:<span class="text-danger">*</span></h6>
</div>
<div class="col-md-9 pe-5">
<input type="text" name="phone" class="form-control form-control-lg"
placeholder="01684XXXXXX" maxlength="11" minlength="11" />
</div>
</div>
<hr class="mx-n1">
<div class="row align-items-center pt-1 pb-1">
<div class="col-md-3 ps-3">
<h6 class="mb-0">Email Adress:<span class="text-danger">*</span></h6>
</div>
<div class="col-md-9 pe-5">
<input type="email" name="email" class="form-control form-control-lg"
placeholder="example@gmail.com" />
</div>
</div>
<hr class="mx-n1">
<div class="row align-items-center py-1">
<div class="col-md-3 ps-3">
<h6 class="mb-0">Shop Address:<span class="text-danger">*</span></h6>
</div>
<div class="col-md-9 pe-5">
<textarea name="shop_address" class="form-control" rows="3"
placeholder="Shop-No/Holding/Road/Village/City"></textarea>
</div>
</div>
<hr class="mx-n1">
<div class="row align-items-center pt-1 pb-1">
<div class="col-md-3 ps-3">
<h6 class="mb-0">Profile Image:</h6>
</div>
<div class="col-md-9 pe-5">
<input name="display_img" type="file" id="formFile" class="form-control form-control-lg"
placeholder="example@gmail.com" />
</div>
</div>
<!-- <hr class="mx-n1">
<div class="row align-items-center pt-1 pb-1">
<div class="col-md-3 ps-3">
<h6 class="mb-0">Select Trxn Status</h6>
</div>
<div class="col-md-9 pe-5">
<select name="status" class="form-select" aria-label="Default select example">
<option selected value=""> Trxn Status </option>
<option value="successful">Successful</option>
<option value="unpaid">Unpaid</option>
<option value="waiting">Waiting</option>
<option value="failed">Failed</option>
<option value="unsettled">Unsettled</option>
<option value="settled">Settled</option>
<option value="pending">Resend</option>
<option value="deleted">Deleted</option>
</select>
</div>
</div> -->
<hr class="mx-n1">
<div class="row align-items-center pt-1 pb-1">
<div class="col-md-3 ps-3">
<h6 class="mb-0">Verify PIN<span class="text-danger">*</span></h6>
</div>
<div class="col-md-9 pe-5">
<input name="enteredpin" placeholder="Enter Verify PIN" type="text"
class="form-control form-control-lg" autocomplete="off" />
</div>
</div>
<hr class="mx-n1">
<div class="px-5 py-4">
<input type="submit" class="btn btn-primary btn-lg" value="SUBMIT" />
<button type="button" class="btn btn-primary btn-lg" onclick="window.location.reload()"><i
class="fa-solid fa-refresh"></i> Refresh</button>
</div>
</div>
</form>
</div>
</div>
<div class="container mt-5 w-50">
<pre id="proccessData"></pre>
</div>
<!-- Bootstrap JS File -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
<!-- jquery cdn file -->
<script src="https://code.jquery.com/jquery-3.7.1.js"></script>
<!-- main file -->
<script src="script.js"></script>
</body>
</html>