How to redirect from one CGI to another

后端 未结 2 1253
隐瞒了意图╮
隐瞒了意图╮ 2021-01-27 17:14

I am sending data from A.cgi to B.cgi. B.cgi updates the data in the database and is supposed to redirect back to A.cgi, at w

2条回答
  •  梦毁少年i
    2021-01-27 17:38

    Location: is a header and headers must come before all ordinary output, that's probably your problem. But doing this manually is unneccessarly complicated anyways, you would be better of using the redirect function of CGI.pm

提交回复
热议问题