提交表单时出现403错误

时间:2014-12-23 05:01:35

标签: javascript php html forms

最近,当按下this page表单上的“提交”按钮时,我收到403错误。通过在浏览器中键入URL直接访问the new page时,我没有收到消息并正确加载。

我在第一个PHP页面中有这些行:

<form method="post" enctype="multipart/form-data" name="keyboard_submit">
...
<p><input type="button" value="Submit" onclick="Submit_Scheme();"/><input type="button" value="View Flat File" onclick="View_Flatfile();"/><input type="reset" value="Reset Fields"/></p>

在我的Javascript文件中,我有这个功能:

function Submit_Scheme()
{
    var submission_string = Parse_Fields()
    var SubmitForm = document.forms[SubmitName]
    SubmitForm.submission_code.value = submission_string
    SubmitForm.action = '../ssi/emailprocessor_keysub.php'
    SubmitForm.target = ''
    SubmitForm.method = 'POST'
    SubmitForm.submit()
}

我已在其他帖子中阅读了一些解释,但不了解它们或如何实施更改。我将不胜感激。

错误讯息:

Forbidden
You don't have permission to access /ssi/emailprocessor_keysub.php on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

1 个答案:

答案 0 :(得分:-3)

您要在服务器上找不到的文件上提交表单。

尝试将您提交表单的文件的绝对路径提供给

(/ SSI / emailprocessor_keysub.php)