To solve your "problem" I recommend that you save this variable in a session, or even a cookie so that you can use it later.
If you wanted to save in a session, on the page that takes the data from $_POST
, you could enter this code:
<?php
session_start();//Colocar no inicio do código, se já não houver em alguma página que da include nessa
//resto do código
$id = $_POST['form'];
$_SESSION['dados'] = $id;
//resto do código
?>
Now to retrieve this data on any other page, you do the following:
<?php
session_start();//Colocar no inicio do código, se já não houver em alguma página que da include nessa
//resto do código
$id = $_SESSION['dados'];
?>
Remembering that since it is SESSION
, as soon as the browser is closed, that data will be "removed" from SESSION
.
If you'd like to know about Cookies, this this page .