简体   繁体   中英

403 error when submitting a form

Hi I have a form that is submitted after a JS file has completed validation checks

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.

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