forked from svara001/FUSION_WEB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
profileedit.php
111 lines (96 loc) · 4.04 KB
/
profileedit.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
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
<?php
if(isset($_GET['submit']))
{
require('./login/loginPage.php');
require('./utils/connection.php');
$userId= $_SESSION["userid"];
$groupId=$_SESSION["groupid"];
// echo "<script>alert ('$userId')</script>";
$userQuery="UPDATE users SET `displayName`=\"$_GET[dname]\",`gender`=\"$_GET[gender]\",`about`=\"$_GET[about]\",`hobbies`=\"$_GET[hobbies]\",`bio`=\"$_GET[bio]\",`pno`=\"$_GET[phno]\",`country`=\"$_GET[country]\" where id='$userId';";
$result=$conn->query($userQuery);
$conn->close();
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>CSS Template</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" />
<link rel="shortcut icon" type="image/png" href="images/favicon.png"/>
<title>Image Upload</title>
<style type="text/css">
/*div {
margin-top: 50px;
border-radius: 5px;
background-color: #f2f2f2;
padding: 20px;
}*/
/*body {
font-family: Arial, Helvetica, sans-serif;
}
Style the header */
header
{
background-color: #91006e;
padding: 30px;
text-align: center;
font-size: 35px;
color: white;
}
form {
text-align: center;
}
</style>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="styles.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styling.css">
</head>
<body>
<nav class="navbar navbar-inverse" id="nav_bar">
<div class= "container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="index.php"><b>FIND A ROOMIE</b></a>
</div>
<div class="nav navbar-nav navbar-right" id ="nav_list">
<a class="navbar-brand"href="newup.php"><span class="glyphicon glyphicon-user"></span>My Profile</a>
<a class="navbar-brand" href="groups/groups.php">Create<span class="glyphicon glyphicon-cog"></span>Group</a>
<a class="navbar-brand" href="search.php"><span class="glyphicon glyphicon-search"></span>Search Users</a>
<a class="navbar-brand"href="logout/logout.php"><span class="glyphicon glyphicon-log-out"></span>Sign Out</a>
</div>
</div>
</nav>
<header>
<h2>EDIT YOUR PROFILE</h2>
</header>
<div>
<form action="#" method="get" >
<br>
<br>
About Me: <input type="text" id="about" name="about" placeholder="about me...!!!"><br><br>
Display Name: <input type="text" id="about" name="dname" placeholder="Display Name"><br><br>
HOBBIES: <input type="text" id="hobbies" name="hobbies" placeholder="list your hobbies"><br><br>
BIO: <input type="text" id="bio" name="bio" placeholder="bio"><br><br>
Phone no: <input type="text" id="phno" name="phno" placeholder="enter your number here"><br><br>
Gender :
<input type = "radio" name="gender" value="M"> Male
<input type = "radio" name="gender" value="F">Female<br><br>
<label for="country">Country: </label>
<select id="country" name="country">
<option value="australia">Australia</option>
<option value="canada">Canada</option>
<option value="usa">USA</option>
<option value="india">India</option>
<option value="afghanistan">Afghanistan</option>
<option value="Brazil">Brazil
</option><br>
</select>
<br><br> <input type="submit" name="submit" id="submit">
<a href="newup.php">cancel</a>
</form>
</div>
</body>
</html>