简体   繁体   中英

403 error when form is submitted

Recently, when pressing the "submit" button on the form on this page I get a 403 error. When directly accessing the new page by typing the URL into the browser I don't get the message and it loads properly.

I have these lines in the first PHP page:

<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>

In my Javascript file I have this function:

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()
}

I have read some explanations in other posts, but do not understand them or how to implement the changes. I would appreciate some help.

Error Message:

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.

you are submitting the form on a file that is not found on the server.

try and give the absolute path for the file that you are submitting the form to

(/ssi/emailprocessor_keysub.php)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM