How to write the code for the back button?

前端 未结 7 576
梦毁少年i
梦毁少年i 2020-12-23 17:43

I have a php code here and I would like to create a "back" href to get me back to where I was before. Here\'s what I have:



        
7条回答
  •  情书的邮戳
    2020-12-23 18:12

    If you want to do it (what I think you are trying right now) then replace this line

    "Back"
    

    with this

    
    

    If you don't want to rely on JavaScript then you could get the HTTP_REFERER variable an then provide it in a link like this:

    Back
    

提交回复
热议问题