[PHP] RE : [PHP] Redirect URL

2003-09-23 Thread Youri B .
Thank you very much,

This was the reason I figured it out now. Thank you for good advise.

Yury

On 22 Sep 2003 at 14:39, BENARD  Jean-philippe wrote:

 Headers must be sent before anything else (text, html ...). If you put
 somewhere something like : echo test;, php will send standard HTML
 header and you'll not be able to sent another headers.
 Be sure that nothing is sent before your header or put this test on top
 of the executed script.
 
 Cordialement,
 Jean-Philippe BENARD
 Consultant STERIA Infogrance
 ([EMAIL PROTECTED])
 
 -Message d'origine-
 De: Yury B. [mailto:[EMAIL PROTECTED] 
 Envoy: dimanche 21 septembre 2003 22:00
 : [EMAIL PROTECTED]
 Objet: [PHP] Redirect URL
 
 Hi 
 
 I have form in file register.php. The action of this form is the same 
 - register.php the form validation script is included in this file 
 like include(mail.php) In mail.php there is two sections - one is 
 working if user didn't complete form properly another if everything 
 okay. So, I need form to show the different page (let's say 
 success.htm) if everything was filled right. I include the following 
 in the mail.php file if everything is okay: header(Location: 
 http://test.my/success.htm;); But it doesn't work even though all the 
 files are in 
 the same directory. 
 it shows:
 Warning: Cannot modify header information - headers already sent by 
 (output started at z:\home\test.my\www\register.php:5) in 
 z:\home\test.my\www\mail.php on line 41
 
 What is wrong?
 
 Yury
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 
 
 

God is our provider 
http://www.body-builders.org/

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



Re: [PHP] Redirect URL

2003-09-22 Thread Marek Kilimajer
Search the archives or google.

Yury B. wrote:

Hi 

I have form in file register.php. The action of this form is the same 
- register.php the form validation script is included in this file 
like include(mail.php) In mail.php there is two sections - one is 
working if user didn't complete form properly another if everything 
okay. So, I need form to show the different page (let's say 
success.htm) if everything was filled right. I include the following 
in the mail.php file if everything is okay: header(Location: 
http://test.my/success.htm;); But it doesn't work even though all the 
files are in 
the same directory. 
it shows:
Warning: Cannot modify header information - headers already sent by 
(output started at z:\home\test.my\www\register.php:5) in 
z:\home\test.my\www\mail.php on line 41

What is wrong?

Yury

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


RE: [PHP] redirect URL

2002-12-07 Thread John W. Holmes
 On Saturday 07 December 2002 04:26, 1LT John W. Holmes wrote:
  I don't can redirect my page to new url
  please help me
  
  Carlos Alberto Pinto Hurtado
 
  I posted the answer on my web page.
 
 Can you redirect the answer to the list so we can all see?
 
 Only joking ;-)

Heh... I was hoping my answer would be about as useful and informative
as his question... :)

John



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




Re: [PHP] redirect URL

2002-12-06 Thread Chris Shiflett
--- Carlos Alberto Pinto Hurtado [EMAIL PROTECTED]
wrote:
 I don't can redirect my page to new url

Try this:

?
header(Location: http://www.google.com/;);
exit;
?

Chris

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




Re: [PHP] redirect URL

2002-12-06 Thread 1LT John W. Holmes
I don't can redirect my page to new url 
please help me

Carlos Alberto Pinto Hurtado

I posted the answer on my web page. 

---John Holmes...

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




Re: [PHP] redirect URL

2002-12-06 Thread Jason Wong
On Saturday 07 December 2002 04:26, 1LT John W. Holmes wrote:
 I don't can redirect my page to new url
 please help me
 
 Carlos Alberto Pinto Hurtado

 I posted the answer on my web page.

Can you redirect the answer to the list so we can all see? 

Only joking ;-)

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *

/*
It is the business of little minds to shrink.
-- Carl Sandburg
*/


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