Dear Newbie,
If you are trying to redirect a user to a URl of any sort try using header("location='whereyouwanttogo.com/blabla.htm'"); within an IF condition.
Now there's a very important thing you should know and remember: YOU CAN'T ECHO ANYTHING to screen. (But if it's only a re-routing script you shouldn't have any echos in your script).
I hope this help.
Rilitium
"Share the knowledge"