-
Notifications
You must be signed in to change notification settings - Fork 2
/
registerJobseeker.php
82 lines (59 loc) · 2.7 KB
/
registerJobseeker.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
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
<?php
include 'connect.php';
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$name = $_POST["name"];
$email = $_POST["email"];
$password = $_POST["password"];
$qlf = $_POST["qlf"];
$dob = $_POST["dob"];
$skills = $_POST["skills"];
$sql = "INSERT INTO seeker (name,email,password,qualification,dob,skills,resume)
VALUES ('$name', '$email', '$password','$qlf', '$dob', '$skills','$fileName')";
if ($conn->query($sql) === TRUE) {
?>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="img/jobsConnect.svg" type="image/x-icon">
<title> Jobseeker Registered</title>
<link href="css/simpleGridTemplate.css" rel="stylesheet" type="text/css">
<link href="css/bootstrap.css" rel="stylesheet" type="text/css">
<link href="css/Animate.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body style="background: url(img/rgback.jpg);">
<div>
</div>
<!-- Trigger the modal with a button -->
<button id="modalBtn" type="button" style="display:none" class="btn btn-info btn-lg" data-toggle="modal" data-target="#myModal">Open Modal</button>
<!-- Modal -->
<div id="myModal" class="modal fade" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<h3>Thanks for Registering with us.. <br>Login to continue using our services</h3>
<br>
<a href="index.php?msg=login">Login</a>
</div>
</div>
</div>
</div>
<script>
$('#modalBtn').trigger("click");
</script>
</body>
</html>
<?php
} else {
echo "Error: " . $sql . "<br>" . $conn->error;
}
$conn->close();
} else {
header("location : index.php");
}