Re: [PHP] reloading a page..

2003-03-23 Thread Leo Spalteholz
On March 23, 1998 08:53 pm, Beauford.2002 wrote: > It's definitely going through the if statement as it does "reload" > the page - print($_SERVER['HTTP_REFERER']); shows > http://www.myserver.com/oldpage.html - which is correct. > print("{$userlevel} and {$neededlevel}"); also shows the correct > i

Re: [PHP] reloading a page..

2003-03-23 Thread Beauford.2002
It's definitely going through the if statement as it does "reload" the page - print($_SERVER['HTTP_REFERER']); shows http://www.myserver.com/oldpage.html - which is correct. print("{$userlevel} and {$neededlevel}"); also shows the correct info. $no_permission does have a string, but even if I har

Re: [PHP] reloading a page..

2003-03-23 Thread Leo Spalteholz
On March 23, 2003 02:34 pm, Beauford.2002 wrote: > The link in question is there by design and should be there, but > below is what I am talking about. > > > Even better, if a user cannot be validated then you can redirect > > them back > > to where they > > > came from (referrer). That would effe

Re: [PHP] reloading a page..

2003-03-23 Thread Beauford.2002
{ include ($_SERVER['HTTP_REFERER']); $message = $no_permission; $exit; } ...on referring page - Original Message - From: "Leo Spalteholz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, March 23, 2003 2:06 PM Subject: Re: [PHP] reloading a p

Re: [PHP] reloading a page..

2003-03-23 Thread Leo Spalteholz
On March 23, 2003 10:22 am, Beauford.2002 wrote: > One other problem is that I need to know the page the came from in > order to reload it. i.e. if they try to access a restricted page > from six.html I want to reload six.html - if they try from > eight.html then eight.html needs to be reloaded.

Re: [PHP] reloading a page..

2003-03-23 Thread Beauford.2002
t; <[EMAIL PROTECTED]> To: "Beauford.2002" <[EMAIL PROTECTED]> Cc: "PHP General" <[EMAIL PROTECTED]> Sent: Sunday, March 23, 2003 12:37 PM Subject: Re: [PHP] reloading a page.. > On Sun, 23 Mar 2003 12:15:25 -0500, you wrote: > > >Not sure why

Re: [PHP] reloading a page..

2003-03-23 Thread David Otton
On Sun, 23 Mar 2003 12:15:25 -0500, you wrote: >Not sure why things like this are so difficult. I have an authentication >script which allows users access to certain pages based on their user level. >If they click on a link to go to a page their not allowed to, I want to be First, why are the pa

[PHP] reloading a page..

2003-03-23 Thread Beauford.2002
Not sure why things like this are so difficult. I have an authentication script which allows users access to certain pages based on their user level. If they click on a link to go to a page their not allowed to, I want to be able to just reload the page their on and display a message saying they a