php - Back button after form submit? - Stack Overflow

I have looked everywhere and found nothing. I am not sure if it is possible, but I need a back button 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
Add a ment  | 

4 Answers 4

Reset to default 3

The 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>

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745630347a4637070.html

相关推荐

  • php - Back button after form submit? - Stack Overflow

    I have looked everywhere and found nothing. I am not sure if it is possible, but I need a back button a

    5小时前
    10

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信