Look at the code below and you will onderstand 😉
Multiplecompetitions.php
<p><a href="subscribe.php? Competition =1">competition 1!</a></p>
<p><a href="subscribe.php? Competition =2">competition 2!</a></p>
<p><a href="subscribe.php? Competition =3">competition 3!</a></p>
Subscribe.php
<?php
if ($_SESSION['login']== "OK" ) {
$Competition = $_GET[' Competition '];
echo $Competition;
if (isset($_GET[' Competition '])) {}
?>
<a href="Subscribe.php?Subscribe=Character1">Subscribe </a>
<br/>
And more code…
As you can see, I will use another $_GET but I want to save the first one somewhere. How do I do this?
At the moment the first $_GET value gets overwritten by the new one.
My ‘guess’ as to what you want:
use & and add as many variables as you like to the url: