Home >Backend Development >PHP Tutorial >ajax-php全局变量修改问题(新手请教)

ajax-php全局变量修改问题(新手请教)

WBOY
WBOYOriginal
2016-06-02 11:27:41800browse

ajaxphp

用户登录后,将用户信息存放到php的全局变量global $user中,

编辑用户,修改用户的名字,点击保存,用户名成功保存到数据库中,但是页面中显示的用户名却没有变,

我想问下ajax回调函数如何能够修改php的超全局变量的值?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn