Issue
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
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.
Answered By - symcbean
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.