我在这里做错了什么?我有两个页面,第一个是save.php,第二个是谢谢你,必须在用户成功注册后回显。
save.php
if($mail->Send()) {
}
unset($_SESSION['GENRE_REQUEST']);
}
header('Location:index.php?page=thanku=1');
exit();
}
else
{
header('Location:index.php?page=thanku=1');
exit();
}
thanku.php
<?php if(!empty($_GET['msg']))
{
if($_GET['msg']==1)
{ ?>
<tr>
<td align="center" valign="top"><b>Thank You for Registering With us.</b> <br />
<br />please activate your profile by clicking on the activation link sent to your email address.<br/></td>
</tr>
答案 0 :(得分:3)
您永远不会发送变量$_GET['msg']
。您正在重定向
header('Location:index.php?page=thanku=1');
将其更改为此,您将看到您的消息
header('Location:index.php?page=thanku&msg=1');
答案 1 :(得分:2)
这是错误的
header('Location:index.php?page=thanku=1');
你忘记了消息
header('Location:index.php?page=thanku&msg=1');