Encountering a problem when trying to complete the contact form on my site, I'm finding error code 405 and not quite sure why. Whether it's a problem in my PHP or my HTML, can anybody help?
Site: https://loudburr.github.io/louisburr/ PHP:
if (isset($POST['submit'])) {
$name = $POST['name'];
$subject = $POST['subject'];
$mailFrom = $POST['mail'];
$message = $POST['message'];
$mailTo = "*my email*";
$headers = "From: ". $mailFrom;
$txt = "You have received an e-mail from" .$name.".\n\n".$message;
mail($mailTo, $subject, $txt, $headers);
header("Location: index.html?mailsend");'
Any help would be great!
Cheers!