Page1.php code;
...
header('Location: editt.php?msg=landing&msisdn='.$msisdn);
...
page2.php code;
$msisdn = $_GET['msisdn'];
$msg = $_GET['msg'];
echo 'Page 2 Content '.$msisdn;
Page1.php code;
...
header('Location: editt.php?msg=landing&msisdn='.$msisdn);
...
page2.php code;
$msisdn = $_GET['msisdn'];
$msg = $_GET['msg'];
echo 'Page 2 Content '.$msisdn;
The piece of code you posted works , maybe in the rest of your code there is some html output before header( )
, this can be also in some of included files if there is some .
UPDATE :
Some useful answers about the same issue could be found here :