logo-dw

Go Back   Dreamweaver Club Forums > Hand Coders Forum > PHP
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 04-26-2012, 08:38 AM   #1
tony09uk
 
Join Date: Oct 2010
Posts: 340
Default Logged in?

I am trying to only show some code when a user is logged in. However i can only seem to show the whole page if they are logged in or hide the whole page if they are not. The only way i can think of showing the required code if they are not logged in is an if() statement and show the whole page inside and then repeaat it in the else statement, omitting the unwanted parts.

But there has to be a better way?
tony09uk is offline   Reply With Quote
Old 04-26-2012, 09:34 AM   #2
edbr
edbr's Avatar
 
Join Date: Aug 2005
Location: Bali
Posts: 11,175
Default

do you use redirect if logged in? just have different locations if logged in or not logged in
__________________
If you're happy and you know it shake your meds!
different style links examples

Flight / Hotel search
Free script download
Bali Villas
edbr is online now   Reply With Quote
Old 04-27-2012, 05:01 PM   #3
tony09uk
 
Join Date: Oct 2010
Posts: 340
Default

Is that the normal way of doing things or are you aware that you are advising a complete idiot so offering the easiest option?
tony09uk is offline   Reply With Quote
Reply


Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:30 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com