-
Notifications
You must be signed in to change notification settings - Fork 0
/
newUpload.php
38 lines (35 loc) · 1.16 KB
/
newUpload.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
<?php
session_start();
if(!isset($_SESSION["userName"]))
{
header("location:index.php");
};
$userName = $_SESSION['userName'];
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Home</title>
<link href="css/home-style.css" rel="stylesheet" type="text/css">
</head>
<body>
<header style="position:relative">
<?php include "header.php"?>
</header>
<div id="new-upload">
<div id="dia-form">
<form action="upload.php" method="POST" enctype="multipart/form-data">
<h1 align="center">Create your diary</h1>
<label>Title of your Dairy </label>
<input type="text" name="diaryTitle" placeholder="Enter Diary title" class="inputField" size="20" required><br><br>
<label>Upload Cover Picture </label>
<input type="file" name="file" value="upload Diary cover " required><br>
<br>
<input align="center" type="submit" name="submit" value="Upload" id="dia-submit">
</form>
</div>
</div>
</body>
</html>