2012-09-12 68 views
-3

我在这里做了什么错?我有两个页面,第一个是save.php,第二个是在用户成功注册后必须回显的谢谢。用电子邮件验证php/mysql注册

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> 
+1

是什么你的错误?你在期待什么? – moopet

+0

如果我理解正确,看起来你的语法错了,你不是重新导入tnahku.php并使用这个'Location:thanku.php?msg = 1'而不是'Location:index.php?page = thanku = 1' –

回答

3

你从来没有送出可变$_GET['msg']。您将会重定向这样

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

它改变这一点,你会看到你的消息

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

我已经改成了这一点,但仍没有得到我已经改成了这个消息,但 – Daniel

+0

仍然不得到消息“} \t \t \t \t \t \t \t \t头(”地点:的index.php?页= thanku&味精= 1' ); \t \t \t \t \t \t \t \t exit(); \t \t \t \t \t \t \t} \t \t \t \t \t \t \t别的 \t \t \t \t \t \t \t { \t \t \t \t \t \t \t \t头('地点:index.php页面= thanku&MSG = 1 “); \t \t \t \t \t \t \t \t exit(); “ \t \t \t \t \t \t \t} – Daniel

+0

1是thanku纳入在正确的时刻index.php文件。 - 2.你是否取代了所有的出现? - 3.如果你认为你已经取代了所有的出现,请检查你重定向到的网址。 - 如果所有这些都无济于事,我现在无法进一步了解所提供的信息。 – bkwint

2

这是错误的

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

你忘了味精

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