-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
44 lines (38 loc) · 1.09 KB
/
index.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
<?php
include "db_upload.php";
?>
<html>
<head>
<style>
h1{
text-align: center;
}
.button{
border:none;
color:white;
padding:15px 32px;
text-align:center;
text-decoration: none;
display:inline-block;
font-size: 16px;
margin:4px 2px;
cursor:pointer;
}
.button1{
background-color: #4CAF50;
}
.button2{
background-color: aqua;
}
</style>
</head>
<body>
<h1>
Hello world!!
</h1>
<input type="file" id="fileInput" hidden/>
<button class="button button1" type="button" id="uploadBtn">upload</button>
<button class="button button2" type="submit" id="submit">submit</button>
<script>uploadBtn.addEventListener('click', () => fileInput.click())</script>
</body>
</html>