RE: [PHP-DB] Re: Redirecting to a new page

2002-01-07 Thread matt stewart
yeah, i know this, but i'm just trying to get this to work before i add some security in there - passing sessions through etc to ensure they're logged in as admin etc. it doesn't really have to be that secure for what i want anyway, but probably a good job you pointed that out ;) -Original Me

Re: [PHP-DB] Re: Redirecting to a new page

2002-01-09 Thread php
hea a better way is to include your admin pages. if ($myrow[Admin] == "Y"){ include("admin.php"); }else{ include("user.php") ; } so you can also include at the top of this example a general header with menu's etc. gurix "Matt Stewart" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PR

Re: [PHP-DB] Re: Redirecting to a new page

2002-01-16 Thread Pete Lacey
And while 'gurix' is correct, the function you're probably looking for is 'header()', as in header("Location: admin.php"); Cheers Pete Php wrote: > hea > a better way is to include your admin pages. > > if ($myrow[Admin] == "Y"){ > include("admin.php"); > }else{ > include("user.php") ; >