Forwarding, dunno if this can be done?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dbudde
Forum Commoner
Posts: 25
Joined: Mon Dec 01, 2003 4:02 pm
Location: Chicago, IL

Forwarding, dunno if this can be done?

Post by dbudde »

I have used PHP on a limited basis. I have done a lot of cold fusion work and what I am looking for is a PHP equivalent to cold fusion's <CFLOCATION> tag.

So, what this does... Lets say I have an IF statement that says <if user1 is logged in send him to page1, IF user2 is logged in, send him to page2>. Can anyone show me roughly how I would accomplish this?

Thanks in advance, whom ever answers this is my hero,

Daniel
Nay
Forum Regular
Posts: 951
Joined: Fri Jun 20, 2003 11:03 am
Location: Brisbane, Australia

Post by Nay »

For logging in check out PHP Sessions and for the redirecting part, you use header()

-Nay
Post Reply