•
•
•
•
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
![]() |
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.
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
Price Beater Promise
10% Cheaper Hosting, & Double Bandwidth and Web Space
Click here to apply
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
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
Price Beater Promise
10% Cheaper Hosting, & Double Bandwidth and Web Space
Click here to apply
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
- Cookie reading and form setting (JavaScript / DHTML / AJAX)
- Searching and Comparing strings from an XML Document (Python)
- instant calculcated quote form (PHP)
- document.write to new window and into a 3 column table! Help Please! (JavaScript / DHTML / AJAX)
- Need to Log Program Usage (Windows NT / 2000 / XP / 2003)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: simple script request [account balance calculation]
- Next Thread: chacking for a cookie using JS


Linear Mode