我最近唯一改变的是将 register_globals 关闭
这是登录脚本的结尾:
$from = $_POST['from']; //convert form element to var
//echo "got here, from is $from"; die;
// test to prove $from is empty
if($from == '')
{
$from = '/pages/reg2.html';
}
header("Location: $from"); // this should redirect page