'Server Error in '/' Application - The HTTP verb POST used to access path '/insert.php' is not allowed
I am trying to use PHP to connect to a database from a website.
I am using the following php:
<?php
$con = mssql_connect("Server","user","password");
if (!$con)
{
die('Could not connect: ' . mssql_error());
}
// some code
?>
And I am trying to send the results of a web form to the database, using:
<form action="insert.php" method="POST">
However I am getting this error back:
Server Error in '/' Application.
The HTTP verb POST used to access path '/insert.php' is not allowed.
How can I resolve this?
Solution 1:[1]
The HTTP verb POST used to access path '/insert.php' is not allowed.
Nothing to do with PHP.
Nothing to do with your database.
You're webserver is refusing to pass the (POST) request to PHP because it has been configured NOT to.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
