Input Upload button
This commit is contained in:
parent
390fde9099
commit
f2805f3956
12
board.php
12
board.php
|
@ -14,6 +14,10 @@
|
|||
<div>
|
||||
<div>
|
||||
<header>
|
||||
<!-- The title begins here -->
|
||||
<h1>Board</h1>
|
||||
<!--The Title ends here -->
|
||||
|
||||
<!-- The sidebar naviagtion begins here -->
|
||||
<nav>
|
||||
<?php
|
||||
|
@ -23,7 +27,13 @@
|
|||
<!-- The sidebar naviagtion ends here -->
|
||||
</header>
|
||||
</div>
|
||||
<!-- The Picture upload Button begins here -->
|
||||
<div>
|
||||
<form action="upload.php" method="POST" enctype="multipart/form-data">
|
||||
<input type="file" name="file">
|
||||
<button type="submit" name="submit">UPLOAD</</button>
|
||||
</div>
|
||||
<!-- The Picture upload Button ends here -->
|
||||
</div>
|
||||
<h1>Board</h1>
|
||||
</body>
|
||||
</html>
|
||||
|
|
2
dbh.php
2
dbh.php
|
@ -1,3 +1,4 @@
|
|||
<!-- dbh file for the login -->
|
||||
<?php
|
||||
|
||||
<!-- Connection to the Server -->
|
||||
|
@ -8,3 +9,4 @@ if (!$conn){
|
|||
die("Connection failed:".mysqli_connect_error());
|
||||
}
|
||||
?>
|
||||
<!-- dbh file for the login end -->
|
||||
|
|
13
index.php
13
index.php
|
@ -14,6 +14,10 @@
|
|||
<div>
|
||||
<div>
|
||||
<header>
|
||||
<!-- The title begins here -->
|
||||
<h1>Home</h1>
|
||||
<!-- The title begins here -->
|
||||
|
||||
<!-- The sidebar naviagtion begins here -->
|
||||
<nav>
|
||||
<?php
|
||||
|
@ -32,17 +36,8 @@
|
|||
|
||||
</nav>
|
||||
<!-- The sidebar naviagtion ends here -->
|
||||
|
||||
|
||||
|
||||
</header>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h1>Home</h1>
|
||||
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<!-- Sign up for the login -->
|
||||
<?php
|
||||
|
||||
INCLUDE 'dbh.php';
|
||||
|
@ -14,3 +15,4 @@ $result = $mysqli_query($conn, $sql);
|
|||
header("Location: index.php");
|
||||
|
||||
?>
|
||||
<!-- Sign up for the login end -->
|
||||
|
|
|
@ -14,6 +14,10 @@
|
|||
<div>
|
||||
<div>
|
||||
<header>
|
||||
<!-- The title begins here -->
|
||||
<h1>Ticket</h1>
|
||||
<!-- The title ends here -->
|
||||
|
||||
<!-- The sidebar naviagtion begins here -->
|
||||
<nav>
|
||||
<?php
|
||||
|
@ -24,6 +28,5 @@
|
|||
</header>
|
||||
</div>
|
||||
</div>
|
||||
<h1>Ticket</h1>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in New Issue