[英]Back button after form submit?
I have looked everywhere and found nothing. 我四处张望,一无所获。 I am not sure if it is possible, but I need a back button after a form has been posted in html.
我不确定是否可以,但是在html中发布表单后,我需要返回按钮。 It is a hotel search and the client does not want the parameters set as GET.
这是酒店搜索,客户端不希望将参数设置为GET。 Does anyone have any idea how I can accomplish this in html, php, javascript or jquery?
有谁知道如何在html,php,javascript或jquery中实现此目的? Thanks in advance for any help!
在此先感谢您的帮助!
The most secure would be php, 最安全的是php,
<a href="<?php echo $_SERVER['HTTP_REFERER'];?>">back</a>
JavaScript can be disabled a times :) 可以禁用一次JavaScript :)
只需使按钮将窗口的位置更改为表单的位置即可。
您应该在页面中使用$_SERVER['HTTP_REFERER']
或创建会话。
have you try this? 你尝试过这个吗?
it brings you back to the previously loaded webpage. 它会带您回到之前加载的网页。
<A HREF="javascript:javascript:history.go(-1)">Back</A>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.