-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
31 lines (29 loc) · 1020 Bytes
/
index.php
File metadata and controls
31 lines (29 loc) · 1020 Bytes
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
<!DOCTYPE html>
<html>
<head>
<title>PHP Tutorials</title>
</head>
<link rel="stylesheet" href="css/bootstrap.min.css">
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery1.js"></script>
<?php
$nameErr = $emailErr = $genderErr = $websiteErr = "";
$name = $email = $gender = $comment = $website = "";
?>
<body>
<div class="container" style="width:30%;margin-top:100px">
<h1>Post your lost item</h1>
<form class="form-group" action="upload.php" method="post" enctype="multipart/form-data">
Name: <input type="text" class="form-control" name="name" value="<?php echo $name ?>">
<span class="error">* <?php echo $nameErr; ?></span>
<br>
Select image to upload:
<input type="file" name="fileToUpload" id="fileToUpload">
<input type="submit" value="Submit post" name="submit">
</form>
</div>
<footer style="margin-top:150px">
<?php require 'footer.php'; ?>
</footer>
</body>
</html>