status
最初のスクリプトで設定した配列から変数を取得しようとすると$_REQUEST[]
(そしてリダイレクトを実行すると)、 warning しか表示されませんUndefined index: status
。何故ですか ?
<?php
$_REQUEST['status'] = "success";
$rd_header = "location: action_script.php";
header($rd_header);
?>
アクションスクリプト.php
<?php
echo "Unpacking the request variable : {$_REQUEST['status']}";