Hi there we need to pass a URL between two pages in PHP but keep it hidden.
The URL is currently stored in a variable.
For example pass the variable between [login to view URL] and page2.php.
At present we are able to display a link on [login to view URL] as follows:
[login to view URL]
Then on [login to view URL] we have:
<?php
$site = $_GET["site"];
header( "Location: [login to view URL]($site)" ) ;
?>
The above works - but the URL is not hidden.
I dont think we can use the POST function as we are not using a form (it is just a link). And I dont think base64 will work because there are problems if the URL is too long for base64 to handle.
We would prefer not to use cookies or sessions.
Thus we are open to soloutions!
## Deliverables
Ideally you would create your own [login to view URL] and [login to view URL] and send to me.
Not essential though if soloution is more complicated.