在/admin/index.php里显示用户信息
1.信息是在/admin/privilege.php获得用户信息,需要跨脚本传递给index.php里面对应的top.html文件
2.采用两次传递:先将数据按照url参数格式传递index.php,然后在act==index处获得,并在对应frame里act=top后面,将参数再拼凑一次;然后在index.php中act==top里获得对应参数,然后在top.html里面输出
第一次传递/admin/privilege.php?act=signin
第一次接收/admin/index.php?act=index
第二次传递/admin/templates/index.html —–framesrc = act=top
第二次接收/admin/index.php?act=top
解析/admin/templates/top.html
但是以上方式太麻烦,需要周转很多次。