[英]403 error when submitting a form
Hi I have a form that is submitted after a JS file has completed validation checks 嗨,我有一个在JS文件完成验证检查后提交的表格
in the form the main line is 主线的形式是
<form style='background-color:ccc' id='form1' name='form1' method='post' action='dual_process.php' > ;
The code for submitting the form is (This calls a JS script) 提交表单的代码是(这称为JS脚本)
<input class="buttn" type="button" name="su" id="su" value="Confirm and Submit Details" <? echo "onclick='$validate;' " ?> />
After the JS script have validated the form the following line is executed JS脚本验证表单后,执行以下行
if (!msg) {
var frm = document.getElementById("form1");
frm.submit() ;
This all worked fine until I moved to a new web host now when I submit the form I get the following error 一切正常,直到我提交表单时移到新的虚拟主机,然后出现以下错误
Forbidden 禁止的
You do not have permission to access this document. 您无权访问此文档。
Could anyone suggest what I am doing wrong OR if there is something that the new host does not like (Old host Simple Web Hosting New one IDAQ ) 任何人都可以建议我做错了什么,或者如果新主机不喜欢某些东西(旧主机,简单的Web主机,新的IDAQ)
Thanks I advance for any help 谢谢,我有任何帮助
Mick 米克
Hy, HY,
Try use double quotes to the form attributes: action="dual_process.php"
, and the others. 尝试对表单属性使用双引号: action="dual_process.php"
以及其他。
The most common reason for the 403 error is that directory browsing is forbidden for the Web site. 403错误的最常见原因是网站禁止目录浏览。 Check if you can directly access the "dual_process.php" page, and maybe a better response can give you the administrator of that server. 检查您是否可以直接访问“ dual_process.php”页面,也许更好的响应可以为您提供该服务器的管理员。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.