I want to know how to pass a variable from one page to another in PHP without any form.
What I want to achieve is this:
You can pass via GET. So if you want to pass the value foobar from PageA.php to PageB.php, call it as PageB.php?value=foobar.
foobar
PageA.php
PageB.php
PageB.php?value=foobar
In PageB.php, you can access it this way:
$value = $_GET['value'];