看看下面的代码,你就会明白;)
多重竞赛.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>
订阅.php
<?php
if ($_SESSION['login']== "OK" ) {
$Competition = $_GET[' Competition '];
echo $Competition;
if (isset($_GET[' Competition '])) {}
?>
<a href="Subscribe.php?Subscribe=Character1">Subscribe </a>
<br/>
还有更多代码……如您所见,我将使用另一个 $_GET 但我想将第一个保存在某个地方。我该怎么做呢?目前第一个 $_GET 值被新的值覆盖。