-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathoffer.php
More file actions
67 lines (62 loc) · 2.32 KB
/
offer.php
File metadata and controls
67 lines (62 loc) · 2.32 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?php
session_start();
if($_SESSION['is_login'] !== true){
header("Location: login.php");
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login Page</title>
<link rel="stylesheet" href="assets/style.css">
<link rel="stylesheet" href="assets/navbar.css">
</head>
<body>
<div class="topnav"> <!--navbar kita ini-->
<a class="active" href="home.php">SignOut</a>
<a href="bodyparts.php">BodyParts</a>
<a href="offer.php">Auction Register</a>
<a href="offerAudit.php">Auction Audit</a>
</div>
<h1 text-align:center> List your entry</h1>
<form class="form" method="POST" action="./brainz/offerchecker.php" enctype="multipart/form-data">
<fieldset>
<label>Title:</label>
<input id="title" name="title" type="text" cols="50">
</fieldset>
<fieldset>
<label>Description:</label>
<textarea id="desc" name="desc" rows="7" cols="85"> </textarea>
</fieldset>
<fieldset>
<label>Price:</label>
<input id="price" name="price" type="interger">
</fieldset>
<fieldset>
<label>Upload your the bodypart you want to sell:</label>
<input id="file" name="file" type="file" placeholder="upload your the bodypart you want to sell">
</fieldset>
<div class="form-actions">
<input type="submit" class="btn btn-primary btn-block btn-ghost" name="send" />
</div>
</form>
<?php
if(isset($_GET['success'])) {
if(isset($_SESSION["success200"])) {
$msg = $_SESSION["success200"];
echo '<br><div style="color:Purple;">' . $msg . '</div>';
}
}
unset($_SESSION['success200']);
if(isset($_GET['error'])) {
if(isset($_SESSION["error101"])) {
$errorMessage = $_SESSION["error101"];
echo '<br><div style="color:Purple;">' . $errorMessage . '</div>';
}
}
unset($_SESSION['error101']);
?>
</body>
</html>