Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
It will work, of course. Sending headers does not interrupt script execution. The user just won't see it. Therefore, it is recommended that after sending the redirect, be sure to die and complete the script with the exit / die function so that the underlying code is not executed in vain (if you do not want to continue the script without the user).
And let's think! You press, say, a button, you are thrown to another page and you think you will see your message? No, you won't see it, the code works from top to bottom
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question