I saved inputs from this form to another php page as variables. How can I get those variables to into a different page with <title>$title</title>.
Basically transfer variables from one page to another with the same info.
INDEX.HTML
<!DOCTYPE html>
<html>
<head></head>
<body>
<form action="action.php" method="POST">
<p>Video Title</p> <input type="text" name="title"> <br>
<p>Video Link</p> <input type="text" name="Link"> <br>
<p>Description</p> <input type="text" name="desc"> <br>
<p>Page Name</p> <input type="text" name="pagename"> <br>
<input type="submit" value="Submit">
</form>
</body>
</html>
ACTION.PHP (Saved Variables)
$title = htmlspecialchars($_POST['title']);
$link = htmlspecialchars($_POST['link']);
$desc = htmlspecialchars($_POST['desc']);
$pgname = htmlspecialchars($_POST['pagename']);
VIDEO.PHP
<title><?php echo $_POST["$title"]; ?></title>