-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheditResume.php
More file actions
109 lines (94 loc) · 3.01 KB
/
editResume.php
File metadata and controls
109 lines (94 loc) · 3.01 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
<?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);
?>
<!DOCTYPE html>
<html>
<head>
<title>Edit 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="editResumeProcess.php" method="POST">
<table>
<tr>
<td colspan="2" style="text-align: center;font-size: 50px">Edit Resume</td>
</tr>
<tr>
<td>Name: </td>
<?php echo '<td><input type="text" name="name" value="' . $row['Name'] . '"></td>';; ?>
</tr>
<tr>
<td>Age: </td>
<?php echo '<td><input type="text" name="age" value="' . $row['Age'] . '"></td>';; ?>
</tr>
<tr>
<td>Email: </td>
<?php echo '<td><input type="text" name="email" value="' . $row['Email'] . '"></td>';; ?>
</tr>
<tr>
<td>Phone: </td>
<?php echo '<td><input type="text" name="phone" value="' . $row['Phone'] . '"></td>';; ?>
</tr>
<tr>
<td>Languages: </td>
<?php echo '<td><input type="text" name="languages" value="' . $row['Languages'] . '"></td>';; ?>
</tr>
<tr>
<td>Work Experience: </td>
<?php echo '<td><input type="text" name="wexp" value="' . $row['WExp'] . '"></td>';; ?>
</tr>
<tr>
<td colspan="2"><input type="submit" value="Submit"></td>
</tr>
</table>
</form>
</body>
</html>