2012-09-12 2 views
-3

내가 여기서 잘못 했습니까? 첫 번째는 save.php이고 두 번째는 사용자가 성공적으로 등록한 후 에코해야하는 두 페이지입니다.전자 메일 확인을 통한 PHP/MySQL 등록

<?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

을 잊지 귀하의 메시지이이

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

변화 그것 같이 리디렉션 당신은 볼 것이다 당신의 실수? 너는 무엇을 기대하고 있니? – moopet

+0

올바르게 이해했다면 구문이 잘못되어 tnahku.php로 방향을 바꾸지 않고'Location : index.php? page = thanku = '대신'Location : thanku.php? msg = 1'을 사용하십시오. 1 ' –

답변

3

thanku.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(); 
} 

당신은 변수 $_GET['msg']를 전송하지 않습니다. 잘못

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

나는이로 변경하고 여전히 내가이로 변경 한 메시지 – Daniel

+0

를 얻을하지 않습니다하지만 여전히'} \t \t \t \t \t \t \t \t 헤더 ('메시지 위치 얻을 해달라고 :의 index.php를? page = thanku & msg = 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. 모든 사건을 대체했다고 생각되면 리디렉션 된 URL을 확인하여 확인하십시오. -이 모든 것이 도움이되지 않는다면 지금 당장 제공된 정보로 더 이상 당신을 도울 수 없습니다. – bkwint

2

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

당신은 무엇 MSG에게

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