Hello. How do i make PHP work with JS? I mean more like, i want to check if the user is logged in or not, and if he is then it will: $("#message").fadeIn("slow"); ..
How should i do this? I have an idea maybe have a file that checks it in php, and then it echo out 1 or 0.
And then a script that checks if its getting 1 then do the message fade in.. But im not as so experienced to script that in JS