-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpanditregistration.php
More file actions
179 lines (137 loc) · 8.04 KB
/
panditregistration.php
File metadata and controls
179 lines (137 loc) · 8.04 KB
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
177
178
179
<?php include("includes/header.php");
include("admin/config/dbcon.php");
$qry = "select poojaid,poojatitle from pooja";
$result = $con->query($qry);
$qry1="select * from states";
$result1=$con->query($qry1);
?>
<section class="intro">
<div class="mask d-flex align-items-center h-100 gradient-custom">
<div class="container">
<div class="row justify-content-center">
<div class="col-12 col-lg-9 col-xl-7">
<div class="card">
<div class="card-body p-4 p-md-5">
<h3 class="mb-2 pb-2">Registration Form For Poojari</h3>
<?php include("poojari/message.php"); ?>
<form action="panditregistrationcode.php" class="needs-validation" method="post" enctype="multipart/form-data" novalidate>
<div class="row">
<div class="col-md-6 mb-1">
<div class="form-outline">
<input type="text" id="firstName" class="form-control" name="txtpfname" required />
<label class="form-label" for="firstName">First Name</label>
</div>
</div>
<div class="col-md-6 mb-1">
<div class="form-outline">
<input type="text" id="lastName" class="form-control" name="txtplname" required />
<label class="form-label" for="lastName">Last Name</label>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12 mb-1">
<div class="form-outline">
<input type="email" id="emailAddress" name="txtpemail"
class="form-control" required />
<label class="form-label" for="emailAddress">Email</label>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6 mb-1">
<div class="form-outline">
<input type="password" id="password" name="txtppass" class="form-control" required />
<label class="form-label" for="password">Passwrod</label>
</div>
</div>
<div class="col-md-6 mb-1">
<div class="form-outline">
<input type="password" id="conpassword" name="txtpconpass"
class="form-control" required />
<label class="form-label" for="conpassword">confirm password</label>
</div>
</div>
</div>
<div class="form-outline mb-2">
<textarea class="form-control" id="address" name="txtpdetails" rows="4" required></textarea>
<label class="form-label" for="address">Pandit Details</label>
</div>
<div class="row">
<div class="col-md-6 mb-2">
<div class="form-outline input-group mb-3">
<span class="input-group-text" id="basic-addon1">+91</span>
<input type="tel" id="phnumber" name="txtpphno" class="form-control" required />
<label class="form-label" for="phnumber">Phone number</label>
</div>
</div>
<div class="col-md-6 mb-2">
<div class="form-outline">
<input type="date" id="doj" name="txtpdoj" class="form-control" required />
<label class="form-label" for="doj">Date of join</label>
</div>
</div>
</div>
<div class="form-outline mb-1">
<textarea class="form-control" id="address" name="txtpaddress" required rows="4"></textarea>
<label class="form-label" for="address">Address</label>
</div>
<div class="row">
<div class="col-md-6 mb-1">
<select class="form-select" id="states1" aria-label="Default select example"
name="txtpstate1">
<option selected>----States----</option>
<?php while ($row = $result1->fetch_assoc()): ?>
<option value="<?= $row['id']; ?>"><?= $row['name']; ?></option>
<?php endwhile; ?>
</select>
</div>
<div class="col-md-6 mb-1">
<select class="form-select" id="city1" aria-label="Default select example"
name="txtpcity1">
<option value="">--Cities--</option>
</select>
</div>
</div>
<div class="row">
<div class="col-md-12 mb-1">
<label class="form-label" for="customFile">Pandit Image
</label>
<input type="file" class="form-control" name="pimage" id="customFile" required />
</div>
</div>
<div class="row">
<div class="col-12">
<div class="mt-2">
<input class=" btn btn-lg" type="submit" name="submit" value="Submit" />
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<script>
// Example starter JavaScript for disabling form submissions if there are invalid fields
(function () {
'use strict'
// Fetch all the forms we want to apply custom Bootstrap validation styles to
var forms = document.querySelectorAll('.needs-validation')
// Loop over them and prevent submission
Array.prototype.slice.call(forms)
.forEach(function (form) {
form.addEventListener('submit', function (event) {
if (!form.checkValidity()) {
event.preventDefault()
event.stopPropagation()
}
form.classList.add('was-validated')
}, false)
})
})()
</script> required
<?php include("includes/scripts.php"); ?>