SyntaxFix
Write A Post
Hire A Developer
Questions
You want sessions if you have data you want to have the data held for longer than one page.
$_GET for just one page.
$_GET
<a href='page.php?var=data'>Data link</a>
on page.php
page.php
<?php echo $_GET['var']; ?>
will output: data