doupo6967 2012-01-10 11:28
浏览 21
已采纳

PHP发布错误

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? Thanks in advance.

  • 写回答

1条回答 默认 最新

  • dstt1818 2012-01-10 12:55
    关注

    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.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作