do I need to use exit after header(“Location: http://localhost/…”);?

后端 未结 6 1218
清酒与你
清酒与你 2021-02-19 02:53

I\'m creating a script to validate a form and I was asking myself a question. When I use a header (see example below), do I need to use exit right after? I mean, does using head

6条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-19 03:09

    does using header also means that it is exiting by default

    How so? What if your header is not Location: one but Content-type: or Cache-control or whatever else?

提交回复
热议问题