如何将id附加到php中的路径

i am trying to passing id index page to another page as given below

 $id=48;

 header("Location: ".$redirect."parties.php&id=$id");

but its not working please help me

Change the & to a ?

header("Location: ".$redirect."parties.php?id=$id");

Then in parties.php, you'll be able to access it with $_GET['id']

header("Location: ".$redirect."parties.php?id=$id");