Avatar ·

How to make a redirect in PHP?

Hello everyone! I just started learning PHP and ran into a problem. I'm writing a simple site with authorization. After the user successfully logs in, I want to redirect them to the personal account page. But nothing works for me.\n\nHere is my code (simplified):\n\n```php\n\n```\n\nWhen I run this code, instead of a redirect, I see the message "You will be redirected..." and the page doesn't redirect. What could be the problem? I've heard about some status codes, like 301 or 302. Do I need to specify them? And is it mandatory