Hi,

Im making a website which has a login system where if the user is logged in (cookie found) it displays extra buttons in the menu, and i was thinking we could use a document.write script which uses a function that checks if the logged in cookie is present or absent, and then "writes" the appropriate menu buttons.. i can do html scripting but not javascript or php, and was wondering what would need to be added to out login script so it wrote a cookie to their computer, and that when the user loads a page, the javascript checks for the cookie. I need the php script and the javascript script.. thanks :)

Max Mumford.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.