Wednesday, 30 August 2017

redirect - PHP redirecting not showing content of the page redirected to




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;

Answer



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
\n";
}


No comments:

Post a Comment

casting - Why wasn't Tobey Maguire in The Amazing Spider-Man? - Movies & TV

In the Spider-Man franchise, Tobey Maguire is an outstanding performer as a Spider-Man and also reprised his role in the sequels Spider-Man...