405 Not Allowed Error #124546
Unanswered
strawbs1989
asked this question in
Programming Help
405 Not Allowed Error
#124546
Replies: 2 comments
This comment was marked as off-topic.
This comment was marked as off-topic.
-
Hi @strawbs1989 What is the action url in the form? And what method (POST, GET, etc) ? |
Beta Was this translation helpful? Give feedback.
0 replies
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>![](https://camo.githubusercontent.com/82c35758a018fe9edfd76ecce0ca1bfe4b95cd688a4a4dd3add128e9d355f7fe/68747470733a2f2f636f6f6c76696265732d72656c6f616465642e636f6d2f696d672f66617669636f6e2e706e67)
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