Home > php教程 > php手册 > body text

实例:PHP判断用户是否正确登录转到欢迎界面

WBOY
Release: 2016-06-21 09:01:31
Original
1217 people have browsed it

//这个页面首先判断用户是否正确登录,如未登录,就转到登录页面。
session_start();
if((!$user_id)or(!$user_array[ticket_day])or(!$user_array[ticket_num])){
    Header("Location: login.php3");
}
?>



    欢迎使用南京站订票系统





 
   

     
       
         

           
娆㈣
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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!