-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwelcome.php
More file actions
99 lines (82 loc) · 2.98 KB
/
Copy pathwelcome.php
File metadata and controls
99 lines (82 loc) · 2.98 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
<?php
session_start();
if ($_SESSION['status'] != "Active") {
header("location:login.html");
}
$connection = mysqli_connect('localhost','root','','db');
if(!$connection){die("Connection Error -> ".mysqli_connect_error());}
$id1=$_SESSION['id'];
$sql = "SELECT * FROM `file_uploads` WHERE id='$id1'";
$result = mysqli_query($connection, $sql);
if ($connection->query($sql) == TRUE) {
if($result->num_rows>0)
{
header("refresh:1, url=uploaded.php");
}
// header("refresh:1, url=welcome.html");
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>DS</title>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="index.css">
<link href='https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css' rel='stylesheet'>
</head>
<body>
<!-- navbar -->
<header class="header">
<nav class="navbar">
<a href="#">Home</a>
<a href="#">About</a>
<a href="#">Contact</a>
<a href="#">Help</a>
<a href="login.html">log out</a>
</nav>
<div class="company">
<h2 class="logo"></i>DOCSAFE</h2>
</div>
</header>
<!-- login -->
<div class="background"></div>
<div class="container">
<div class="item">
<div class="text-item">
<h2>Hey User<br></h2>
<h3>Upload files here</h3>
</div>
</div>
<div class="login-section">
<div class="form-box login">
<form id="uploadForm" action="file_upload.php" method="POST" enctype="multipart/form-data">
<label for="file">
<h2>File upload</h2>
</label>
<div class="input-box">
<input type="file" id="file" name="file1" required>
</div>
<div class="input-box">
<input type="file" id="file" name="file2" required>
</div>
<div class="input-box">
<input type="file" id="file" name="file3" required>
</div>
<div class="input-box">
<input type="file" id="file" name="file4" required>
</div>
<div class="input-box">
<input type="file" id="file" name="file5" required>
</div>
<button class="btn" type="submit" name="submit" value="submit">submit</button>
<!-- <button class="btn"><input name="submit" type="submit" value="submit"></button> -->
</form>
</div>
</div>
</div>
<!-- SIGN UP FORM CREATION -->
<script src="index.js"></script>
</body>
</html>