I have a site in PHP; I want to redirect to external site after running some code; so I want something in the body tag; to redirect it after my code running; something like following example ; what can i do?

```
<head>
<meta charset="utf-8" />
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<header>
</header>
<?php
    $myffirend=" ";
$allmyffirend=" ";
$user=$_GET['user'];
    // this info save in my db

   redirect here // after save the information

   other code

?>

```