开发者

403 error when submitting a form

开发者 https://www.devze.com 2023-02-21 15:58 出处:网络
Hi I have a form that is submitted after a JS file has completed validation checks开发者_JAVA百科

Hi I have a form that is submitted after a JS file has completed validation checks开发者_JAVA百科

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)

   <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

    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 )

Thanks I advance for any help

Mick


Hy,

Try use double quotes to the form attributes: action="dual_process.php", and the others.

The most common reason for the 403 error is that directory browsing is forbidden for the Web site. Check if you can directly access the "dual_process.php" page, and maybe a better response can give you the administrator of that server.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号