[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

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

Re: [PHP] reloading a page..

2003-03-23 Thread Beauford.2002
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 things like this are so difficult. I have an authentication script which

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
['HTTP_REFERER']); $message = $no_permission; $exit; } ...on referring page ? if ($message) { echo $message; } ? - Original Message - From: Leo Spalteholz [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, March 23, 2003 2:06 PM Subject: Re: [PHP] reloading a page.. On March 23, 2003 10

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 info.