我正在尝试使用PHP从网站连接到数据库。
我正在使用以下php:
<?php
$con = mssql_connect("Server","user","password");
if (!$con)
{
die('Could not connect: ' . mssql_error());
}
// some code
?>
我正在尝试将网络表单的结果发送到数据库,使用:
<form action="insert.php" method="POST">
然而,我得到了这个错误回来:
Server Error in '/' Application.
The HTTP verb POST used to access path '/insert.php' is not allowed.
我该如何解决此问题?
不允许使用用于访问路径"/insert.php"的HTTP谓词POST。
与PHP无关。
与数据库无关。
您的Web服务器拒绝将(POST)请求传递给PHP,因为它已配置为NOT。