'
Subject: RE: [PHP] Redirection Question
Thanks to all, I got it working - sort of. It works perfectly on
Windows, but will not work on Linux. I am using the same versions of
PHP, Apache and MySQL on both. I have asked this before and have been
told they are interchangeable, but more times than not I
Nope. What if it's b.php, or c.php. They could come from many pages. I
wish it was that easy.
-Original Message-
From: Chris W. Parker [mailto:[EMAIL PROTECTED]
Sent: July 22, 2003 4:02 PM
To: Beauford.2005
Subject: RE: [PHP] Redirection Question
Beauford.2005 mailto:[EMAIL PROTECTED
=a.php would only work for one page.
TIA
-Original Message-
From: Curt Zirzow [mailto:[EMAIL PROTECTED]
Sent: July 22, 2003 4:16 PM
To: PHP
Subject: Re: [PHP] Redirection Question
* Thus wrote Beauford.2005 ([EMAIL PROTECTED]):
Hi,
I am trying to figure out how to redirect a user
* Thus wrote Beauford.2005 ([EMAIL PROTECTED]):
Maybe I didn't explain enough. What if they come from b.php or c.php.
How do I automatically log what page they tried to access. So hard
coding login.php?next=a.php would only work for one page.
Use the code that Grant Rutherford posted earlier,
PM
To: PHP
Subject: Re: [PHP] Redirection Question
* Thus wrote Beauford.2005 ([EMAIL PROTECTED]):
Hi,
I am trying to figure out how to redirect a user back to a page but
not having much luck.
For example: I click on a menu item on my site which goes to a.php.
This file includes another
). This makes it a real pain.
Oh well, back to my debugging.
-Original Message-
From: Curt Zirzow [mailto:[EMAIL PROTECTED]
Sent: July 22, 2003 7:04 PM
To: PHP
Subject: Re: [PHP] Redirection Question
* Thus wrote Beauford.2005 ([EMAIL PROTECTED]):
Maybe I didn't explain enough. What
Beauford.2005 wrote:
Hi,
I am trying to figure out how to redirect a user back to a page but not
having much luck.
For example: I click on a menu item on my site which goes to a.php. This
file includes another file that determines if they are logged in or not.
If not, they are sent to login.php
Hello there,
I had the same problem, and to solve it I put the following code in my
check login include file:
// code to detect no login
session_start();
session_register('target');
$_SESSION['target'] = http://; . $_SERVER['SERVER_NAME'] .
$_SERVER['REQUEST_URI'];
* Thus wrote Beauford.2005 ([EMAIL PROTECTED]):
Hi,
I am trying to figure out how to redirect a user back to a page but not
having much luck.
For example: I click on a menu item on my site which goes to a.php. This
file includes another file that determines if they are logged in or not.
Use sessions or cookies to store the first page they are trying to
access. Then if not logged in redirect them to the login.php page. After
login is successful then they can be redirected to the values that was
specified in the cookie or seesion variable.
--
BigDog
On Wed, 2003-07-23 at 13:44,
10 matches
Mail list logo