Web Design Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignWeb Design Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 4th, 2005, 04:31 AM
JP16 JP16 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Posts: 2 JP16 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 41 m 7 sec
Reputation Power: 0
Enabling/ Disabling Buttons

Can anyone tell me how i can have the buttons on my menu frame disabled until the user has logged into the site, and then once the user has logged in the buttons are enabled?!?!?!?!

Reply With Quote
  #2  
Old April 4th, 2005, 05:59 AM
acidfourtyfive's Avatar
acidfourtyfive acidfourtyfive is offline
Since 439000000
Dev Shed Novice (500 - 999 posts)
 
Join Date: May 2004
Location: Canada
Posts: 797 acidfourtyfive User rank is Second Lieutenant (5000 - 10000 Reputation Level)acidfourtyfive User rank is Second Lieutenant (5000 - 10000 Reputation Level)acidfourtyfive User rank is Second Lieutenant (5000 - 10000 Reputation Level)acidfourtyfive User rank is Second Lieutenant (5000 - 10000 Reputation Level)acidfourtyfive User rank is Second Lieutenant (5000 - 10000 Reputation Level)acidfourtyfive User rank is Second Lieutenant (5000 - 10000 Reputation Level)acidfourtyfive User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 20 h 42 m 29 sec
Reputation Power: 90
You would have to use some server-side script, like PHP to check for a cookie to see if they are logged in or not.

You might have something like this
PHP Code:
<?php
if(is_set($_COOKIE["cookie_name""cookie_value"])
{
echo 
"<button>Button</button>";
}
else
{
echo 
"<button disabled=\"disabled\">LOGIN TO ENABLE</button>";
}
?>


Good refrences
http://www.w3schools.com/tags/tag_button.asp
http://www.php.net/manual/en/

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignWeb Design Help > Enabling/ Disabling Buttons


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT