403 Forbidden on form submission

浪子不回头ぞ 提交于 2019-12-01 00:30:46

Check your post data, if it contains any url then there are chances to get blocked in server.

you should replace certain characters in the url you are submitting then you need convert back to its original form on post.

My solution:

it sounds like you are not urlencoding the URL you're passing before you embed it in the URL of the script you're passing to.

And here some guy says to change the permissions to 644

http://www.daniweb.com/forums/thread21777.html

i realised i had name defined twice for countrysle.... so i changed it to this and now it works[within form]

        <tr>
            <td><b>Country:</b></td>
            <td><input id='countrysle' type="text"  name='countrysle' style='-webkit-border-radius: 8px;-moz-border-radius: 8px;border-radius: 8px;width:250px'/></td>
        </tr>                
        <tr>
            <td><b>Youtube link:</b></td>
            <td><input id='youtubesle' type="text" name='youtubesle' style='-webkit-border-radius: 8px;-moz-border-radius: 8px;border-radius: 8px;width:250px'/><br/>Example:<small style='font-size:8pt;color:#666666'>http://www.youtube.com/watch?v=vJyftjMOd2w</small></td>
        </tr> 
indigo

You need the type= "text" attribute in your input tag of the field you are having the problem with. Also try and use method= "post" in the form attributes rather than get which can also cause this problem.

http://www.linuxforums.org/forum/servers/34130-you-dont-have-permission-access-server-solved.html

Read the last comment from that link:

"Just Googled my problem and found this thread. Most of it was over my head, but I created a new folder, put my "forbidden" file there, and it fixed the problem. Thanks!"

WTF!

Incredibly, I found that if I changed the post string from 'blank form webpage' to 'blank webpage', i.e. omitting the technical word 'form', the form would post the text without the server throwing up a 'Forbidden' message!!!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!