User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 427,435 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 3,681 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 PHP advertiser: Lunarpages PHP Web Hosting

Redirecting - Newbie Question

Join Date: Jul 2005
Posts: 169
Reputation: aparnesh is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 10
aparnesh's Avatar
aparnesh aparnesh is offline Offline
Junior Poster

Question Redirecting - Newbie Question

  #1  
Jun 21st, 2006
How can I redirect a page to another ? For example, if the user is registered he gets to see the members section and if he is not, he is redirected to a 'Register Now' page when he clicks on a members area link.

Also how will it work if he types in the address in the address bar ? For example, he types www.somesite.com/members_area.php. So when this page loads, it checks if the user is logged in. If he is not, it redirects him to a 'Guest' page or something.

The logging in checking can be done by setting a cookie, if I am not mistaken. How can I redirect to a different page or different site ?

I am a newbie at Php, so sorry if this is too trivial.

Regards
AddThis Social Bookmark Button
Reply With Quote  
All times are GMT -4. The time now is 5:31 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC