I'm trying to create an anonymous submission form on my website page, https://pomegranate-society.com/anon.html. I have a text box ready, but whenever I try to test it, I receive an error: "405 Not Allowed". I was wondering if someone could look at my code and help me out? I only have PHP installed on my computer but I am not sure what I should do in order to fix this problem. The complete repository for this website is at https://github.com/shilpakancharla/pomegranate-society.com/tree/gh-pages. Thanks everyone in advance.
I've tried using <?php instead of <?
.
<?php
$webmaster_email = "societypomegranate@gmail.com";
$feedback_page = "anon.html";
$feedback_page = "anon.html";
$error_page = "error_message.html";
$thankyou_page = "thank_you.html";
$comments = $_REQUEST['comments'] ;
$msg =
"Anonymous Submission: " . $comments ;
if (!isset($_REQUEST['email_address'])) {
header( "Location: $feedback_page" );
}
elseif (empty($comments)) {
header( "Location: $error_page" );
}
else {
mail( "$webmaster_email", "Anonymous Form Results", $msg );
header( "Location: $thankyou_page" );
}
?>
I hope that this form works, and an email can be sent to societypomegranate@gmail.com.