(How) can I open the result of a form submission in a new window?

前端 未结 2 1579
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-24 16:19

I have a small form inside a table. POSTing that form creates a new entity. I then want users to see that new entity, but it should open in a new window so that the original v

2条回答
  •  既然无缘
    2021-01-24 17:17

    One request, one response. That is the way of the web.

    If you want a new window after a post, you either need to post the request from the new window in the first place- perhaps opened via javascript- or post your data from that page to the same page and save a token so that when the page re-loads is can open a new windows -again, likely with javascript- and that new window's request already knows about the previous post.

提交回复
热议问题