Use PHP sessions with jquery

后端 未结 7 1441
我寻月下人不归
我寻月下人不归 2021-01-26 10:02

Well, my question is simple:

I wish to use my PHP sessions in jQuery, in an if statement, however I do not know how I can do this on an easy way. Am I supposed to someho

7条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-26 10:26

    if($admin == true || gebr_id == $_SESSION['id']){
    $javascript = "javascript code here";
    }
    

    and then in your html

    
    
    
    

提交回复
热议问题