I have a page where if you are logged in, you see your username and avatar. If you are not logged in, then you see a connect button that will redirect you to another page where you can enter your username and your password to log in.
What I want to do is after you log in and are redirected on the page you were before logging in.
<?php
session_start();
if (isset($_POST["logIn"]))
{
.....
header("Location:../index.php");
} else
{ ...}
What should I change to header?