找不到表单操作页面

时间:2015-05-06 16:10:39

标签: forms perl http-status-code-404

我正在玩Perl并自动填写表单。但是,当我查看源代码并将表单的“action”URL粘贴到我的浏览器中时,它会转到“找不到页面”。怎么会这样?如果数据能够提交到页面,那么页面是否必须存在?或者我错过了什么?

例如,HTML看起来像:

<form action="/Pages/somepage">
    <input type="text" name="email" />
    <input type="submit" />
</form>

因此,如果我转到http://thewebserver.com/formPage/Pages/somepage,它只会显示“找不到页面”错误。

感谢。

1 个答案:

答案 0 :(得分:0)

如果表单操作为“/ Pages / somepage”,则正确的完整网址为http://thewebserver.com/Pages/somepage,而不是http://thewebserver.com/formPage/Pages/somepage。不确定你从哪里获得“formPage”。

相关问题