Page 1 of 1

Forwarding, dunno if this can be done?

Posted: Wed Dec 03, 2003 12:52 am
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

Posted: Wed Dec 03, 2003 1:18 am
by Nay
For logging in check out PHP Sessions and for the redirecting part, you use header()

-Nay