View Full Version : Setting a JavaScript in <header> before page loads w/ PHP?

05-05-2011, 04:30 AM
I have a "Login" form on each page that will check if a user's computer has a certain cookie set (the "I've logged in" one). If it has been, then I want a certain script to load that changes the content of one <div>.

Is this possible?:confused:

05-05-2011, 10:01 AM
Look at.....


I would prefer to do this using a session as cookies can be cleared

05-06-2011, 12:13 AM
Well, I know how to set cookies, but I already figured out my problem. Thanks anyways davidj!