Input Upload button

This commit is contained in:
Ismail Cadaroski 2017-01-11 21:42:17 +01:00
parent 390fde9099
commit f2805f3956
5 changed files with 23 additions and 11 deletions

View File

@ -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>

View File

@ -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 -->

View File

@ -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>

View File

@ -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 -->

View File

@ -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>