User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 397,653 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,353 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 898 | Replies: 1
Reply
Join Date: Oct 2006
Location: UK
Posts: 137
Reputation: MaxMumford is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
MaxMumford's Avatar
MaxMumford MaxMumford is offline Offline
Junior Poster

document.write according to log-in cookie present / absent

  #1  
Jun 12th, 2007
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.
Economizerz Hosting
Price Beater Promise

10% Cheaper Hosting, & Double Bandwidth and Web Space
Click here to apply
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Oct 2006
Location: UK
Posts: 137
Reputation: MaxMumford is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
MaxMumford's Avatar
MaxMumford MaxMumford is offline Offline
Junior Poster

Re: document.write according to log-in cookie present / absent

  #2  
Jun 13th, 2007
i think i write it a bit too .. confusingly lol heres a link to the less complicated version:

http://www.daniweb.com/forums/post38...tml#post387701

Max
Economizerz Hosting
Price Beater Promise

10% Cheaper Hosting, & Double Bandwidth and Web Space
Click here to apply
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb JavaScript / DHTML / AJAX Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 11:26 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC