RE: [PHP] Redirect function

2001-12-10 Thread Martin Towell

header(location: $url);

-Original Message-
From: Steve Osborne [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 11, 2001 11:36 AM
To: PHP-General (E-mail)
Subject: [PHP] Redirect function


Is there a function or command in php that will redirect a user to another
page, similar to Response.Redirect(URL) in ASP?

Steve Osborne
Database Programmer
Chinook Multimedia Inc.
[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



RE: [PHP] Redirect Function?!!

2001-12-06 Thread Martin Towell

how about include'ing the target page then exit'ing straight after?

include $page;
exit;

-Original Message-
From: Cam [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 07, 2001 4:23 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Redirect Function?!!


Anyone know of a way to redirect to another page with PHP?  I'm aware of the
META tag redirection via the HTTP header, but I really need a more elegant
solution that redirects immediately without relying on any HTML tags.
Appreciate the help,
-C




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



Re: [PHP] Redirect Function?!!

2001-12-06 Thread Jason Brooke

?php header(Location: http://your.domain/path/to/file.html;); ?


- Original Message -
From: Martin Towell [EMAIL PROTECTED]
To: 'Cam' [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, December 07, 2001 3:23 PM
Subject: RE: [PHP] Redirect Function?!!


 how about include'ing the target page then exit'ing straight after?

 include $page;
 exit;

 -Original Message-
 From: Cam [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 07, 2001 4:23 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Redirect Function?!!


 Anyone know of a way to redirect to another page with PHP?  I'm aware of
the
 META tag redirection via the HTTP header, but I really need a more elegant
 solution that redirects immediately without relying on any HTML tags.
 Appreciate the help,
 -C




 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Redirect Function?!!

2001-12-06 Thread Alex Shi

You can use,

header (Location: http://www.php.net;);

and you can pass variable,

header (Location: http://www.php.net?name1=$value$name2=$value2;);

Hope this can helps.

Alex Shi


- Original Message -
From: Cam [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, December 07, 2001 12:22 AM
Subject: [PHP] Redirect Function?!!


 Anyone know of a way to redirect to another page with PHP?  I'm aware of
the
 META tag redirection via the HTTP header, but I really need a more elegant
 solution that redirects immediately without relying on any HTML tags.
 Appreciate the help,
 -C




 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Redirect Function?!!

2001-12-06 Thread Brian Clark

* Cam [EMAIL PROTECTED] [Dec 07. 2001 00:23]:

 Anyone know of a way to redirect to another page with PHP?  I'm aware of the
 META tag redirection via the HTTP header, but I really need a more elegant
 solution that redirects immediately without relying on any HTML tags.
 Appreciate the help,

http://www.php.net/header

-- 
 -Brian Clark


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]