rn Digital M'sia
DID : 03-7870 5168
-Original Message-
From: Beauford.2005 [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 8:55 AM
To: 'PHP'
Subject: RE: [PHP] Redirection Question
Thanks to all, I got it working - sort of. It works perfectly on
Windows, but will
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
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
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 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
* 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
So hard
> coding login.php?next=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.
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 P
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,
* 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
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'];
header("Lo
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 using header(:Locatio
11 matches
Mail list logo