我正尝试使用PHP从网站连接到数据库。PHP发布错误
我使用下面的PHP -
<?php
$con = mssql_connect("Server","user","password");
if (!$con)
{
die('Could not connect: ' . mssql_error());
}
// some code
?>
,我试图到Web表单结果发送到数据库,使用 -
<form action="insert.php" method="POST">
但是我得到这个错误回 -
Server Error in '/' Application.
The HTTP verb POST used to access path '/insert.php' is not allowed.
我该如何解决这个问题?提前致谢。
您是否正在使用URL重写? – 2012-01-10 11:31:05
你正在使用哪个Web服务器?任何特殊的东西像配置的代理? – James 2012-01-10 11:34:35
关于URL重写,不是我所知,而我只是使用本地主机,从Visual Studio运行网站,我将命令更改为'GET',它可以下载好的php文件,但我需要发布。 – Ebikeneser 2012-01-10 11:40:05