-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpost.php
More file actions
125 lines (99 loc) · 3.71 KB
/
post.php
File metadata and controls
125 lines (99 loc) · 3.71 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
122
123
124
125
<?php
$servename="localhost";
$user = "root";
$password = "";
$database = "topsoft";
$conn = new mysqli($servename, $user, $password, $database);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Topsoft blog</title>
<link href="img/favicon.ico" rel="shortcut icon"/>
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/bootstrap-icons.css">
<link rel="stylesheet" href="css/mx.css">
<link rel="stylesheet" href="css/topsoft.css">
</head>
<body>
<header class="sticky-top">
<nav class="navbar navbar-expand-lg navbar-light cl">
<img src="img/top.png">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item"><a href="index.php" class="text-light"><i class="bi-people-fill"></i> Employee <span class="sr-only"></span></a>
</li>
<li class="nav-item active">
<a href="blog.php" class="text-dark"><i class="bi-newspaper"></i> Blog</a>
</li>
<li class="nav-item">
<a href="log.php" class="text-light"><i class="bi-wrench"></i> Dashbroad</a>
</li>
</ul>
</div>
</nav>
</header>
<div class="wrapper">
<!-- Sidebar -->
<div id="sidebar">
<div class="sidebar-header">
<h3>TOP SOFT INC</h3>
</div>
<div class="about">
Topsoft inc is one best software develop companies in Uganda<br/>
We are located in Kampala.<br/>
We begun on 1st Jan 2012. We develop Websites and web apps,<br/>
though coding, We also make mobile apps, computer programs and many more.
</div>
<ul class="list-unstyled CTAs">
<li>
<a href="topsoft.sql" class="download">Download database</a>
</li>
</ul>
</div>
<!-- Page Content -->
<div id="content">
<?php
$nam=$_GET['nam'];
?>
<div id="dude"> <?php echo $nam ;?>
</div>
<div class="bone">
<form action="conn/pos.php" method="POST" enctype="multipart/form-data">
<div class="mb-3">
<input class="form-control" type="text" id="nax" name="nam" readonly>
</div>
<textarea class="form-control" name="bl" id="FormControlTextarea1" rows="3" type='text' placeholder="Write your blog here...."></textarea>
<br/>
<div class="mb-3">
<label for="formFile" class="form-label">Upload a image</label>
<input class="form-control" type="file" id="formFile" name="blog">
</div>
<div class="mb-3">
<label for="formFile" class="form-label">Upload a image</label>
<input class="form-control" type="file" id="formFile" name="blog2">
</div>
<a class="btn btn-primary " href="post.php" role="button">Post</a>
<button>post</button>
<!-- <a href="conn/post.php?id=<?php echo $row['Id'];?>" class="btn btn-outline-primary" role="button">Post</a> -->
</form>
</div>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/bootstrap.js"></script>
<script type="text/javascript" src="js/popper.js"></script>
<script type="text/javascript" src="js/top.js"></script>
<script type="text/javascript">
var namy=document.getElementById("dude").textContent;
if(namy==null){
document.getElementById("nax").value= "User";
} else{
document.getElementById("nax").value= namy;
}
</script>
</body>
</html>