Current directory: /home/klas4s23/domains/585455.klas4s23.mid-ica.nl/public_html/Gastenboek/uploads
<?php
// Get form data
$name = $_POST['name'];
$email = $_POST['email'];
$subject = $_POST['subject'];
$message = $_POST['message'];
// Save to a file (example)
$data = "$name, $email, $subject, $message\n";
file_put_contents('messages.csv', $data, FILE_APPEND);
// Optionally, you can send an email notification or perform other actions here
// Generate JavaScript alert
echo '<script>alert("Contact formulier is verzonden");</script>';
// Redirect back to the contact form
header('Location: contact.html');
exit();
?>