Home > Backend Development > PHP Tutorial > 求教,php如何获取其他页面声明的变量值

求教,php如何获取其他页面声明的变量值

WBOY
Release: 2016-06-13 13:34:53
Original
786 people have browsed it

求教,php怎么获取其他页面声明的变量值?
php怎么获取其他页面声明的变量值?
$u_email=short_check(get_argp("u_email")); //用户名已经记录了
$user_pws=md5(get_argp("u_pws")); //密码已经记录了
以上是那个页面声明的变量。我想在其他页面获取到。该怎么获取。我是初学php求教

------解决方案--------------------

PHP code
<?php // 启用会话
session_start();
// ...
$_SESSION['u_email']  = short_check(get_argp("u_email")); //用户名已经记录了
$_SESSION['user_pws'] = md5(get_argp("u_pws")); //密码已经记录了 <div class="clear">
                 
              
              
        
            
Copy after login
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template