Reputation: 21
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;
Upvotes: 0
Views: 265
Reputation: 5202
why not using header as container of your data :
header('msg: msgValue');
header('msisdn: msisdnValue');
header('Location: editt.php');
in edit.php
$headers = apache_request_headers();
foreach ($headers as $header => $value) {
echo "$header: $value <br />\n";
}
Upvotes: 0
Reputation: 322
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 :
php-header-redirect-not-working
Upvotes: 1