php/mysql注册和电子邮件验证


php/mysql registration with email verification

我做错了什么?我包含了两个页面,第一个是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>

您从不发送变量$_GET['msg']。你像这样重定向

header('Location:index.php?page=thanku=1');

改成这个,你会看到你的信息

header('Location:index.php?page=thanku&msg=1');

这是错误的

header('Location:index.php?page=thanku=1');

您忘记消息

header('Location:index.php?page=thanku&msg=1');