405 Not Allowed Error #124546
Unanswered
strawbs1989
asked this question in
Programming Help
405 Not Allowed Error
#124546
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Question
Body
why when testing a project the site gives me a 405 Not Allowed
i'v only got this code
index.html: `
<title>Song Request Form</title>From:
$data = "From: $from, To: $to, DJ: $djs, Message: $message, Song Request: $songrequest\n"; file_put_contents('jaystest/requests.txt', $data, FILE_APPEND); header('Location: jaystest/success.html'); exit();
} else {
<title>Success</title>echo "Invalid request method.";
}
?>
success.html:
Request Successful
Your song request and dedication has been submitted successfully!
Submit another request ` viewrequest.php: ` <title>View Requests</title>Song Requests and Dedications
$request"; } } else { echo "- No requests found.
";
}
?>
`why is it giving me a 405 Not Allowed
Beta Was this translation helpful? Give feedback.
All reactions