html |
您所在的位置:网站首页 › 表单提交action地址怎么写 › html |
如题,在form表单中的action属性的值可以写成目标相对路径或URL绝对路径。在W3School中是这样描述的: Where to send the form-data when the form is submitted. Possible values: An absolute URL - points to another web site (like action="http://www.example.com/example.htm") A relative URL - points to a file within a web site (like action="example.htm")现在我有下面的代码: document.loginform.submit();为了保密我把username给替换了。 把这些保存成html文件,在本地直接双击打开,是可以跳转到https://securecn.englishtown.com/login/handler.ashx并登陆成功的。 但,我把这个文件部署在服务器上,服务器会自动在文件所在的目录寻找login/handler.ashx,显然我服务器上没有这个东西,于是报出404。 为什么部署在服务器上就不能跳转了呢? |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |