Current directory: /home/klas4s23/domains/585455.klas4s23.mid-ica.nl/public_html/Gastenboek/uploads
<?php include 'header.php'; ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Guestbook</title>
<link rel="stylesheet" href="styles.css">
<style>
body {
font-family: Arial, sans-serif;
background-color: #2f2f2f;
margin: 0;
padding: 0;
}
.container {
max-width: 600px;
margin: 20px auto;
padding: 20px;
background-color: #fff;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
h1, h2 {
text-align: center;
}
form {
margin-bottom: 20px;
}
label {
display: block;
margin-bottom: 5px;
}
input[type="text"],
textarea,
input[type="file"],
input[type="submit"] {
width: 100%;
padding: 10px;
margin-bottom: 10px;
border: 1px solid #ccc;
border-radius: 5px;
box-sizing: border-box;
}
textarea {
resize: vertical;
}
input[type="submit"]:hover {
background-color: #2f2f2f; /* Dark green background on hover */
color: #fff; /* Text color on hover */
}
</style>
</head>
<body>
<div class="container">
<h1>Guestbook</h1>
<div class="guestbook-entries">
<h2>Guestbook Entries</h2>
<?php include 'display_messages.php'; ?>
</div>
<form action="submit_message.php" method="post" enctype="multipart/form-data">
<label for="name">Name:</label>
<input type="text" id="name" name="name" required><br><br>
<label for="message">Message:</label>
<textarea id="message" name="message" rows="4" required></textarea><br><br>
<label for="image">Image:</label>
<input type="file" id="image" name="image"><br><br>
<input type="submit" value="Submit" class="submit">
</form>
</div>
</body>
</html>