![]() |
|
#1
|
|||
|
|||
Simple login reveals extra menu/buttons...Hi, I´m trying to make a simple login script.
I have a page that only select people can have access to. There is no registration (I register them and add them to the database directly). On my page, there are should be "hidden" menus and buttons that only members can access. IF the user is not logged in (checked via cookie maybe) the login form should appear. Else (if user is logged in) the extra menus/buttons are showing. php.about.com (login 1 and 2), but I get a header error! I just don´t know how headers work I was just hoping to find a login script that: 1. Checks on each page if user is logged in 2. If logged in = show menu/buttons 3. If not logged in = show login form 4. Simple login form that adds cookie to users computer A simple IF/ELSE could be used to show login or menu/buttons: Like when a user is signed in, to show a button: PHP Code:
I was hoping to do the same with the menus: PHP Code:
If user is not signed in (after IF statement): PHP Code:
Could anybody help me out? |
|
#2
|
||||
|
||||
Re: Simple login reveals extra menu/buttons...__________________
www.blake-foster.com |
Recent GIDBlog
Toyota - 2008 August Promotion by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Dediwebhost.com -- June Price Blowout - Celeron 2.4Ghz starts at $49 a month | Dediwebhost.com | Managed / Dedicated Servers | 0 | 14-Jun-2007 12:35 |
| Dediwebhost.com -- Dual Core Server Blowout. Must see to believe | Dediwebhost.com | Managed / Dedicated Servers | 0 | 15-May-2007 11:51 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The