-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakeResume.php
More file actions
121 lines (107 loc) · 3.49 KB
/
makeResume.php
File metadata and controls
121 lines (107 loc) · 3.49 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
<?php
session_start();
$servername = "localhost";
$username = $_SESSION['Username'];
$dbname = "wpl";
$conn = mysqli_connect($servername, 'root', '', $dbname);
if (!$conn) {
die("Connection failed: " . mysqli_connect_error());
}
$result = mysqli_query($conn,"SELECT * FROM Resume WHERE Username = '$username'")
OR die("Failed to query database ".mysqli_error($conn));
$row = mysqli_fetch_array($result);
if ($row['Name'] != null) {
die("Session Already Exists");
}
?>
<!DOCTYPE html>
<html>
<head>
<title>Make Resume</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"></script>
<style type="text/css">
body{
background-image: url("https://coolbackgrounds.io/images/backgrounds/index/aqua-d9b59c89.png");
background-repeat: no-repeat;
}
table{
width:33%;
margin-left: 33%;
margin-top: 5%;
background-color: rgba(0,0,0,0.6);
}
table td{
text-align: center;
color: white;
font-size: 25px;
margin: 5px;
padding: 10px 10px;
}
table input{
color: black;
}
</style>
</head>
<body>
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="#">Resume Builder</a>
</div>
<ul class="nav navbar-nav navbar-right">
<li><a href="first.php"><span class="glyphicon glyphicon-menu-left"></span> Back</a> </li>
<li><a href="logout.php"><span class="glyphicon glyphicon-log-in"></span> Logout</a></li>
</ul>
</div>
</nav>
<form action="makeResumeProcess.php" method="POST">
<table>
<tr>
<td colspan="2" style="font-size: 50px;text-align: center;">
<b>My Resume</b>
</td>
</tr>
<tr>
<td>Name:</td>
<td><input type="text" name="name" placeholder="Enter Name" title="Please enter valid name" /></td>
</tr>
<tr>
<td>Age:</td>
<td><input type="text" name="age" placeholder="Enter Age" pattern="[2-5]{1}[0-9]{1}" title="Age between 20-50" /></td>
</tr>
<tr>
<td>Email:</td>
<td><input type="email" name="email" placeholder="Enter Email" /></td>
</tr>
<tr>
<td>Phone:</td>
<td><input type="tel" name="phone" placeholder="Enter 10 digit Phone Number" pattern="[0-9]{10}" /></td>
</tr>
<tr>
<td>College:</td>
<td><input type="text" name="college" placeholder="Enter College Name" /></td>
</tr>
<tr>
<td>Degree:</td>
<td><input type="text" name="degree" placeholder="Enter Degree" /></td>
</tr>
<tr>
<td>Languages:</td>
<td><input type="text" name="languages" placeholder="Enter Languages" /></td>
</tr>
<tr>
<td>Work Experience:</td>
<td><input type="text" name="wexp" placeholder="Enter Work Experience" /></td>
</tr>
<tr>
<td colspan="2" ><input type="submit" id="button" name="submit" value="submit" style="background-color: green; text-align: center;color: white"></td>
</tr>
</table>
</form>
</body>
</html>