好像得先session_register("Query1");再$Query1=$Query;吧,不然,register的Query1是起此后所获得的值,取消注册如楼上所说。
解决方案 »
- 用PHPExcel导出表格出现乱码 请大侠帮忙看看是怎么回事!!
- frameset中location跳转页面 cookie丢失
- Zend Framework视频教程(1)
- php中弹出对话框时如何保留原来的页面显示(对话框的弹出用Js实现)?
- php读xml,有问题,谢谢了。
- php编写的软件如何实现用注册码机制来保护软件被非法复制或盗版?
- 请问各位php.ini中有没有设置运行模式的选项 CGI或IsapI
- 请教用readfile读ftp文件的问题
- php中的java扩展的问题
- 使用Apache+Php中关于缓冲设置问题
- win2000上安装mysql问题
- 怎样把上传的文件的后缀从整个名字($attachename)中取出?
Description
bool session_unregister ( string name)
session_unregister() unregisters (forgets) the global variable named name from the current session. This function returns TRUE when the variable is successfully unregistered from the session. 注: If $_SESSION (or $HTTP_SESSION_VARS for PHP 4.0.6 or less) is used, use unset() to unregister a session variable.
注意
This function doesn't unset the corresponding global variable for name, it only prevents the variable from being saved as part of the session. You must call unset() to remove the corresponding global variable.
注意
If you are using $_SESSION (or $HTTP_SESSION_VARS), do not use session_register(), session_is_registered() and session_unregister().