Re: [PHP] redirecting to a url..

2003-07-20 Thread Louie Miranda
yes, got it working. thanks a lot.. i did use header

--
Thank you,
Louie Miranda ([EMAIL PROTECTED])


- Original Message - 
From: Chris Shiflett [EMAIL PROTECTED]
To: Louie Miranda [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, July 18, 2003 11:45 PM
Subject: Re: [PHP] redirecting to a url..


 
 --- Louie Miranda [EMAIL PROTECTED] wrote:
  echo meta http-equiv=\REFRESH\ CONTENT=\0; URL=us/index.php\;
  
  Or you may have other more advance alternatives?
 
 You can use a protocol redirect rather than relying on HTML:
 
 header('Location: http://yoursite.org/us/index.php');
 
 Chris
 
 =
 Become a better Web developer with the HTTP Developer's Handbook
 http://httphandbook.org/
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] redirecting to a url..

2003-07-20 Thread Ow Mun Heng
Me, 

I have 2 functions. 1 I call - immediate and other refresh.. the
difference is one as the name implies is immediate - (like chris pointed out
below ) - 

header('Location: http://yoursite.org/us/index.php');

The other is more of a refresh kind, waits a default of 2 secs (for me so
that I can show a warning message before it redirects..

function header_refresh_html($l_refresh_url)
{
// This is taken from php-manual
header(Expires: Mon, 26 Jul 1997 05:00:00 GMT);
// Date in the past
header(Last-Modified:  . gmdate(D, d M Y H:i:s) .  GMT);  //
always modified
header(Cache-Control: no-store, no-cache, must-revalidate);   //
HTTP/1.1
header(Cache-Control: post-check=0, pre-check=0, false);
header(Pragma: no-cache);
// HTTP/1.0
header( Refresh:2;url=$l_refresh_url );   // Wait
default of 2 seconds
}
Cheers,
Mun Heng, Ow
H/M Engineering
Western Digital M'sia 
DID : 03-7870 5168


-Original Message-
From: Chris Shiflett [mailto:[EMAIL PROTECTED]
Sent: Friday, July 18, 2003 11:46 PM
To: Louie Miranda; [EMAIL PROTECTED]
Subject: Re: [PHP] redirecting to a url..


--- Louie Miranda [EMAIL PROTECTED] wrote:
 echo meta http-equiv=\REFRESH\ CONTENT=\0; URL=us/index.php\;
 
 Or you may have other more advance alternatives?

You can use a protocol redirect rather than relying on HTML:

header('Location: http://yoursite.org/us/index.php');

Chris

=
Become a better Web developer with the HTTP Developer's Handbook
http://httphandbook.org/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] redirecting to a url..

2003-07-18 Thread Louie Miranda
My solution..

echo meta http-equiv=\REFRESH\ CONTENT=\0; URL=us/index.php\;

Or you may have other more advance alternatives?

--
Thank you,
Louie Miranda ([EMAIL PROTECTED])


- Original Message -
From: Louie Miranda [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 18, 2003 2:08 PM
Subject: [PHP] redirecting to a url..


 I have this form with 2 values under 1 name ColTemplate. I was hoping if i
 can redirect it to another url? on the ?? if templateone or templatetwo.

 Anyhelp would be good.

 -- code -
 $v_get_template = $_POST['ColTemplate'];


 if ($v_get_template === 'TemplateOne') {
  ??

 } elseif ($v_get_template === 'TemplateTwo') {
  ??
 }
 -- code -



 --
 Thank you,
 Louie Miranda ([EMAIL PROTECTED])



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] redirecting to a url..

2003-07-18 Thread Curt Zirzow

Louie Miranda [EMAIL PROTECTED] wrote:
 I have this form with 2 values under 1 name ColTemplate. I was hoping if i
 can redirect it to another url? on the ?? if templateone or templatetwo.

header('Location: http://domain/file');

 
Curt
--


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] redirecting to a url..

2003-07-18 Thread Louie Miranda
thanks, this is much better.

--
Thank you,
Louie Miranda ([EMAIL PROTECTED])


- Original Message -
From: Curt Zirzow [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 18, 2003 2:29 PM
Subject: Re: [PHP] redirecting to a url..



 Louie Miranda [EMAIL PROTECTED] wrote:
  I have this form with 2 values under 1 name ColTemplate. I was hoping if
i
  can redirect it to another url? on the ?? if templateone or templatetwo.

 header('Location: http://domain/file');


 Curt
 --


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] redirecting to a url..

2003-07-18 Thread Chris Shiflett
--- Louie Miranda [EMAIL PROTECTED] wrote:
 echo meta http-equiv=\REFRESH\ CONTENT=\0; URL=us/index.php\;
 
 Or you may have other more advance alternatives?

You can use a protocol redirect rather than relying on HTML:

header('Location: http://yoursite.org/us/index.php');

Chris

=
Become a better Web developer with the HTTP Developer's Handbook
http://httphandbook.org/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Redirecting to a URL

2002-01-08 Thread Henning Sprang

Hy

Robert MacCombe wrote:

 Hi, how do I redirect to a different URL, e.g. as a result of an IF
 condition being true. I'm basically looking for a PHP version of the ASP -
 Response.Redirect(/otherpage.htm)



use the header function to send a location: header to the browser:



$redirect_url=http://www.nowhere.net/;;

if( $foobar== ){
header( Location: .$redirect_url );
}



henning


-- 
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] Redirecting to a URL

2002-01-08 Thread Bogdan Stancescu

Use headers as suggested or use javascript if you want to be able to notify
the user about the redirection.

Bogdan

Robert MacCombe wrote:

 Hi, how do I redirect to a different URL, e.g. as a result of an IF
 condition being true. I'm basically looking for a PHP version of the ASP -
 Response.Redirect(/otherpage.htm)


-- 
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]