PHP发布错误

Ebi*_*ser 2 html php database

我正在尝试使用PHP从网站连接到数据库.

我使用以下PHP -

<?php
$con = mssql_connect("Server","user","password");
if (!$con)
  {
  die('Could not connect: ' . mssql_error());
  }

// some code
?>
Run Code Online (Sandbox Code Playgroud)

我正在尝试将Web表单的结果发送到数据库,使用 -

 <form action="insert.php" method="POST">
Run Code Online (Sandbox Code Playgroud)

但是我收到了这个错误 -

Server Error in '/' Application.

The HTTP verb POST used to access path '/insert.php' is not allowed.
Run Code Online (Sandbox Code Playgroud)

我该如何解决这个问题?提前致谢.

sym*_*ean 5

不允许使用用于访问路径'/insert.php'的HTTP谓词POST.

与PHP无关.

与您的数据库无关.

您是web服务器拒绝将(POST)请求传递给PHP,因为它已配置为不.