header location – Query String

$qrystr = $_SERVER[‘QUERY_STRING’]; – เก็บข้อมูล query string เข้าตัวแปร
$target = ‘nextpage.php’ . ‘?’ .  $qrystr;
header(“location : $target”);

Exit mobile version