Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Which way to go? I want to display 1 of 2 webDocuments

Status
Not open for further replies.

ShaneBrennan

Programmer
May 19, 1999
198
GB
I'm very new to PHP and want to be able to do the following algorithm in PHP

if userlevel = 1 then
display page AdminUser.php
else
display page GeneralUser.php
end if

Thanks for any help given in advance.

Shane Brennan Shane Brennan

'-----------------------

' Emails: shanebrennan@postmaster.co.uk
' Personal WebPage:
 
redirects the user to the required page...same as response.redirect in ASP...

mkae sure that you do not write anything to the browser before executing this statement, it won't work if you do...

http://www.php.net/manual/en/function.header.php
Bastien

There are many ways to skin this cat,
but it still tastes like chicken
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top