Home  >  Article  >  php教程  >  实例:PHP判断用户是否正确登录转到欢迎界面

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

WBOY
WBOYOriginal
2016-06-21 09:01:311188browse

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



    欢迎使用南京站订票系统





 
   

     
       
         

           
娆㈣
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