PHP - Pass POST variables with header()?

前端 未结 4 1936
伪装坚强ぢ
伪装坚强ぢ 2020-12-14 10:14

I\'m trying to use the header() function to create a redirect. I would like to display an error message. Currently I\'m sending the message as a parameter through the URL,

4条回答
  •  别那么骄傲
    2020-12-14 10:53

    The header function is used to send HTTP response headers back to the user so actually you cannot use it to create request headers :(

    One possibility is to use the CURL but I don't think it is worth of what you are doing.

提交回复
热议问题