admin管理员组文章数量:1026174
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. It is a hotel search and the client does not want the parameters set as GET. Does anyone have any idea how I can acplish this in html, php, javascript or jquery? Thanks in advance for any help!
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. It is a hotel search and the client does not want the parameters set as GET. Does anyone have any idea how I can acplish this in html, php, javascript or jquery? Thanks in advance for any help!
Share Improve this question asked Nov 17, 2012 at 2:22 luv2codeluv2code 1,2966 gold badges24 silver badges42 bronze badges 1-
Use the javascript
history.back()
mand, tied to a button? – Tim Dearborn Commented Nov 17, 2012 at 2:26
4 Answers
Reset to default 3The most secure would be php,
<a href="<?php echo $_SERVER['HTTP_REFERER'];?>">back</a>
JavaScript can be disabled a times :)
Just make the button change the location of the window to the location of the form.
You should use : $_SERVER['HTTP_REFERER']
in your page, or create a session.
have you try this?
it brings you back to the previously loaded webpage.
<A HREF="javascript:javascript:history.go(-1)">Back</A>
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. It is a hotel search and the client does not want the parameters set as GET. Does anyone have any idea how I can acplish this in html, php, javascript or jquery? Thanks in advance for any help!
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. It is a hotel search and the client does not want the parameters set as GET. Does anyone have any idea how I can acplish this in html, php, javascript or jquery? Thanks in advance for any help!
Share Improve this question asked Nov 17, 2012 at 2:22 luv2codeluv2code 1,2966 gold badges24 silver badges42 bronze badges 1-
Use the javascript
history.back()
mand, tied to a button? – Tim Dearborn Commented Nov 17, 2012 at 2:26
4 Answers
Reset to default 3The most secure would be php,
<a href="<?php echo $_SERVER['HTTP_REFERER'];?>">back</a>
JavaScript can be disabled a times :)
Just make the button change the location of the window to the location of the form.
You should use : $_SERVER['HTTP_REFERER']
in your page, or create a session.
have you try this?
it brings you back to the previously loaded webpage.
<A HREF="javascript:javascript:history.go(-1)">Back</A>
本文标签: phpBack button after form submitStack Overflow
版权声明:本文标题:php - Back button after form submit? - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745630346a2160125.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论