-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpost.php
40 lines (39 loc) · 1.35 KB
/
post.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<title>Document</title>
<?php
session_start();
if (!isset($_SESSION["loggedin"])) {
header("Location:home.php?login=none");
}
?>
</head>
<body>
<div class="menu">
<a class="menu-item" href="home.php">Home</a>
<a class="menu-item" href="index.php">Cars</a>
<div class="main">Post</div>
<a class="menu-item" href="logoutUser.php">Logout</a>
</div>
<h1 class="title">CAR SPOTTER !</h1>
<div class="log-in">
<h1>Post your car</h1>
<form class="post" action="postUpload.php" id="post" method="post">
<h2>image URL</h2>
<input name="img" type="text" placeholder="image" id="img" required>
<h2>year</h2>
<input name="year" type="text" placeholder="year" id="year" required>
<h2>make</h2>
<input name="make" type="text" placeholder="make" id="make" required>
<h2>model</h2>
<input name="model" type="text" placeholder="model" id="model" required>
<button id="get" for="post" type="submit">Post</button>
</form>
</div>
<div id="posts" class="posts"></div>
</body>
</html>