-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfeedback.php
51 lines (39 loc) · 1.36 KB
/
feedback.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
44
45
46
47
48
49
50
51
<?php
ob_start();
require 'config.php';
$name = $_POST['name'];
$email = $_POST['email'];
$dob = $_POST['dob'];
$gender = $_POST['gender'];
$aadhar = $_POST['aadhar'];
$voter = $_POST['voterid'];
$query = mysqli_query($con, "INSERT INTO `voter_list`(`id`, `name`, `email`,`dob`, `gender`, `aadhar`, `voter`) VALUES ('','$name','$email','$dob','$gender','$aadhar','$voter')");
echo '<script>alert("Thank You..! Your data have been updated in our database."); window.location = "/votar";</script>';
/*$query1 = "SELECT * FROM `staff` WHERE email = '$email' AND password = '$password'";
$result_query1 = mysqli_query($conn, $query1);
$count_query1 = mysqli_num_rows($result_query1);
/*if ($count_query1 != 0)
{
header("Location: controller/staff.php");
exit();
}
else {
$query2 = "SELECT * FROM `admin` WHERE email = '$email' AND password = '$password'";
$result_query2 = mysqli_query($conn, $query2);
$count_query2 = mysqli_num_rows($result_query2);
$count_query2 = mysqli_num_rows($result_query2);
if ($count_query2!=0)
{
header("Location: controller/admin.php");
exit();
}
else
{
echo '<script>alert("Incorrect Credentials Entered"); location.replace(document.referrer);</script>';
}
}
//echo $email;
//echo '</br>';
//echo $password;
ob_end_flush();*/
?>