[PHP] question about Location

2002-09-06 Thread Meltem Demirkus


Is there anyway  to direct my page to another after the php and output
process work on the page?

thanks
meltem demirkus



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




[PHP] question about Location

2002-09-06 Thread Meltem Demirkus


 I mean  I made a page with php and other stuff..And there is form .When I
 click on okbutton  php is dpoing what it should . But after want the page
to
 come to another link.I asked that before and they told me that .. there
must
 be no uotput but I am using ?...? which means  output..

 so I dont know what to do..
 meltem


 - Original Message -
 From: Brad Bonkoski [EMAIL PROTECTED]
 To: Meltem Demirkus [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Friday, September 06, 2002 12:36 PM
 Subject: Re: [PHP] question about Location


  Not quite sure what you are getting at here?  A hyper link would direct
  the user to another page :-)
  If you mean after a timeout/auto-magically perhaps you can try meta
 refresh:
 
  http://www.htmlhelp.com/reference/html40/head/meta.html
 
  HTH
  -Brad
 
  Meltem Demirkus wrote:
   Is there anyway  to direct my page to another after the php and output
   process work on the page?
  
   thanks
   meltem demirkus
  
  
  
 
 
 



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




Re: [PHP] question about Location

2002-09-06 Thread Marek Kilimajer

?  ? doesn't mean output unless you use echo or print or whatever to 
output from there anything.
Just use header(Location: yournewpage.php); at the end.

Meltem Demirkus wrote:

I mean  I made a page with php and other stuff..And there is form .When I
click on okbutton  php is dpoing what it should . But after want the page


to
  

come to another link.I asked that before and they told me that .. there


must
  

be no uotput but I am using ?...? which means  output..

so I dont know what to do..
meltem


- Original Message -
From: Brad Bonkoski [EMAIL PROTECTED]
To: Meltem Demirkus [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, September 06, 2002 12:36 PM
Subject: Re: [PHP] question about Location




Not quite sure what you are getting at here?  A hyper link would direct
the user to another page :-)
If you mean after a timeout/auto-magically perhaps you can try meta
  

refresh:


http://www.htmlhelp.com/reference/html40/head/meta.html

HTH
-Brad

Meltem Demirkus wrote:
  

Is there anyway  to direct my page to another after the php and output
process work on the page?

thanks
meltem demirkus






  



  



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




Fw: [PHP] question about Location

2002-09-06 Thread Meltem Demirkus

I tried , but it is giving this error:

Warning: Cannot add header information - headers already sent by (output
started at C:\FoxServ\www\debugger\project_module\project_update_.php:2) in
C:\FoxServ\www\debugger\project_module\project_update_.php on line 37

the line 2  is   ? include start_html.php ?

and  start_html.php includes:

? include(defaults.php) ?
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 3.2 Final//EN
HTML
HEAD
TITLE ? echo $page_title ?/TITLE
META http-equiv=Content-Type content=text/html; charset=windows-1254
/HEAD
BODY


and line 37 is the header I wrote ? header(Location: yournewpage.php);
?


- Original Message -
From: Marek Kilimajer [EMAIL PROTECTED]
To: PHP [EMAIL PROTECTED]
Sent: Friday, September 06, 2002 12:55 PM
Subject: Re: [PHP] question about Location


 ?  ? doesn't mean output unless you use echo or print or whatever to
 output from there anything.
 Just use header(Location: yournewpage.php); at the end.

 Meltem Demirkus wrote:

 I mean  I made a page with php and other stuff..And there is form .When
I
 click on okbutton  php is dpoing what it should . But after want the
page
 
 
 to
 
 
 come to another link.I asked that before and they told me that .. there
 
 
 must
 
 
 be no uotput but I am using ?...? which means  output..
 
 so I dont know what to do..
 meltem
 
 
 - Original Message -
 From: Brad Bonkoski [EMAIL PROTECTED]
 To: Meltem Demirkus [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Friday, September 06, 2002 12:36 PM
 Subject: Re: [PHP] question about Location
 
 
 
 
 Not quite sure what you are getting at here?  A hyper link would direct
 the user to another page :-)
 If you mean after a timeout/auto-magically perhaps you can try meta
 
 
 refresh:
 
 
 http://www.htmlhelp.com/reference/html40/head/meta.html
 
 HTH
 -Brad
 
 Meltem Demirkus wrote:
 
 
 Is there anyway  to direct my page to another after the php and output
 process work on the page?
 
 thanks
 meltem demirkus
 
 
 
 
 
 
 
 
 
 
 
 


 --
 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] question about Location

2002-09-06 Thread liljim

Are you needing to output anything to your users before the page is sent to
this new page?  If not, then simple answer, don't send output before
redirecting.

Brief example (coming from a submitted form)

?php

extract($_POST);

if ($action)
{ // something's been submitted.

 // Process all of the information. If there are no errors, then get outta
here.
 header(location: /formcomplete.php);
 exit;

}

?
html
!-- All of your form and other HTML here. --
/html

-James

Meltem Demirkus [EMAIL PROTECTED] wrote in message
03ef01c2558e$923180f0$5583@hiborya">news:03ef01c2558e$923180f0$5583@hiborya...
 I tried , but it is giving this error:

 Warning: Cannot add header information - headers already sent by (output
 started at C:\FoxServ\www\debugger\project_module\project_update_.php:2)
in
 C:\FoxServ\www\debugger\project_module\project_update_.php on line 37

 the line 2  is   ? include start_html.php ?

 and  start_html.php includes:

 ? include(defaults.php) ?
 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 3.2 Final//EN
 HTML
 HEAD
 TITLE ? echo $page_title ?/TITLE
 META http-equiv=Content-Type content=text/html; charset=windows-1254
 /HEAD
 BODY


 and line 37 is the header I wrote ? header(Location: yournewpage.php);
 ?


 - Original Message -
 From: Marek Kilimajer [EMAIL PROTECTED]
 To: PHP [EMAIL PROTECTED]
 Sent: Friday, September 06, 2002 12:55 PM
 Subject: Re: [PHP] question about Location


  ?  ? doesn't mean output unless you use echo or print or whatever to
  output from there anything.
  Just use header(Location: yournewpage.php); at the end.
 
  Meltem Demirkus wrote:
 
  I mean  I made a page with php and other stuff..And there is form
.When
 I
  click on okbutton  php is dpoing what it should . But after want the
 page
  
  
  to
  
  
  come to another link.I asked that before and they told me that ..
there
  
  
  must
  
  
  be no uotput but I am using ?...? which means  output..
  
  so I dont know what to do..
  meltem
  
  
  - Original Message -
  From: Brad Bonkoski [EMAIL PROTECTED]
  To: Meltem Demirkus [EMAIL PROTECTED]
  Cc: [EMAIL PROTECTED]
  Sent: Friday, September 06, 2002 12:36 PM
  Subject: Re: [PHP] question about Location
  
  
  
  
  Not quite sure what you are getting at here?  A hyper link would
direct
  the user to another page :-)
  If you mean after a timeout/auto-magically perhaps you can try meta
  
  
  refresh:
  
  
  http://www.htmlhelp.com/reference/html40/head/meta.html
  
  HTH
  -Brad
  
  Meltem Demirkus wrote:
  
  
  Is there anyway  to direct my page to another after the php and
output
  process work on the page?
  
  thanks
  meltem demirkus
  
  
  
  
  
  
  
  
  
  
  
  
 
 
  --
  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] question about Location

2002-09-06 Thread Naintara Jain

see, if you output anything for the user, then you cannot use a header
if your include files have echo/print statements or errors that are
displayed then it is considered output.

use JavaScript to redirect the page
look up window.location=url in JavaScript reference
embed that script in php.

or else turn output buffering on.
look up

* http://www.zend.com/zend/art/buffering.php
* http://www.phpbuilder.com/columns/argerich20010125.php3
(taken from php manual)

-Naintara

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
t]On Behalf Of Meltem Demirkus
Sent: Friday, September 06, 2002 3:47 PM
To: [EMAIL PROTECTED]
Subject: Fw: [PHP] question about Location


I tried , but it is giving this error:

Warning: Cannot add header information - headers already sent by (output
started at C:\FoxServ\www\debugger\project_module\project_update_.php:2) in
C:\FoxServ\www\debugger\project_module\project_update_.php on line 37

the line 2  is   ? include start_html.php ?

and  start_html.php includes:

? include(defaults.php) ?
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 3.2 Final//EN
HTML
HEAD
TITLE ? echo $page_title ?/TITLE
META http-equiv=Content-Type content=text/html; charset=windows-1254
/HEAD
BODY


and line 37 is the header I wrote ? header(Location: yournewpage.php);
?


- Original Message -
From: Marek Kilimajer [EMAIL PROTECTED]
To: PHP [EMAIL PROTECTED]
Sent: Friday, September 06, 2002 12:55 PM
Subject: Re: [PHP] question about Location


 ?  ? doesn't mean output unless you use echo or print or whatever to
 output from there anything.
 Just use header(Location: yournewpage.php); at the end.

 Meltem Demirkus wrote:

 I mean  I made a page with php and other stuff..And there is form .When
I
 click on okbutton  php is dpoing what it should . But after want the
page
 
 
 to
 
 
 come to another link.I asked that before and they told me that .. there
 
 
 must
 
 
 be no uotput but I am using ?...? which means  output..
 
 so I dont know what to do..
 meltem
 
 
 - Original Message -
 From: Brad Bonkoski [EMAIL PROTECTED]
 To: Meltem Demirkus [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Friday, September 06, 2002 12:36 PM
 Subject: Re: [PHP] question about Location
 
 
 
 
 Not quite sure what you are getting at here?  A hyper link would direct
 the user to another page :-)
 If you mean after a timeout/auto-magically perhaps you can try meta
 
 
 refresh:
 
 
 http://www.htmlhelp.com/reference/html40/head/meta.html
 
 HTH
 -Brad
 
 Meltem Demirkus wrote:
 
 
 Is there anyway  to direct my page to another after the php and output
 process work on the page?
 
 thanks
 meltem demirkus
 
 
 
 
 
 
 
 
 
 
 
 


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





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




Re: Fw: [PHP] question about Location

2002-09-06 Thread Marek Kilimajer

Put your code that takes care of the post before the line 2, output the 
header and exit. Like this
?
if($_POST['submit']) {
    do what needs to be done
header(Location: nextpage.php);
exit;
}

include start_html.php


Meltem Demirkus wrote:

I tried , but it is giving this error:

Warning: Cannot add header information - headers already sent by (output
started at C:\FoxServ\www\debugger\project_module\project_update_.php:2) in
C:\FoxServ\www\debugger\project_module\project_update_.php on line 37

the line 2  is   ? include start_html.php ?

and  start_html.php includes:

? include(defaults.php) ?
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 3.2 Final//EN
HTML
HEAD
TITLE ? echo $page_title ?/TITLE
META http-equiv=Content-Type content=text/html; charset=windows-1254
/HEAD
BODY


and line 37 is the header I wrote ? header(Location: yournewpage.php);
?


- Original Message -
From: Marek Kilimajer [EMAIL PROTECTED]
To: PHP [EMAIL PROTECTED]
Sent: Friday, September 06, 2002 12:55 PM
Subject: Re: [PHP] question about Location


  

?  ? doesn't mean output unless you use echo or print or whatever to
output from there anything.
Just use header(Location: yournewpage.php); at the end.

Meltem Demirkus wrote:



I mean  I made a page with php and other stuff..And there is form .When


I
  

click on okbutton  php is dpoing what it should . But after want the


page
  



to


  

come to another link.I asked that before and they told me that .. there




must


  

be no uotput but I am using ?...? which means  output..

so I dont know what to do..
meltem


- Original Message -
From: Brad Bonkoski [EMAIL PROTECTED]
To: Meltem Demirkus [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, September 06, 2002 12:36 PM
Subject: Re: [PHP] question about Location






Not quite sure what you are getting at here?  A hyper link would direct
the user to another page :-)
If you mean after a timeout/auto-magically perhaps you can try meta


  

refresh:




http://www.htmlhelp.com/reference/html40/head/meta.html

HTH
-Brad

Meltem Demirkus wrote:


  

Is there anyway  to direct my page to another after the php and output
process work on the page?

thanks
meltem demirkus








  



  

--
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: Fw: [PHP] question about Location

2002-09-06 Thread adrian murphy

make sure there is no whitespace before first ?

- Original Message -
From: Marek Kilimajer [EMAIL PROTECTED]
To: PHP [EMAIL PROTECTED]
Sent: Friday, September 06, 2002 11:34 AM
Subject: Re: Fw: [PHP] question about Location


 Put your code that takes care of the post before the line 2, output the
 header and exit. Like this
 ?
 if($_POST['submit']) {
 do what needs to be done
 header(Location: nextpage.php);
 exit;
 }

 include start_html.php


 Meltem Demirkus wrote:

 I tried , but it is giving this error:
 
 Warning: Cannot add header information - headers already sent by (output
 started at C:\FoxServ\www\debugger\project_module\project_update_.php:2)
in
 C:\FoxServ\www\debugger\project_module\project_update_.php on line 37
 
 the line 2  is   ? include start_html.php ?
 
 and  start_html.php includes:
 
 ? include(defaults.php) ?
 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 3.2 Final//EN
 HTML
 HEAD
 TITLE ? echo $page_title ?/TITLE
 META http-equiv=Content-Type content=text/html;
charset=windows-1254
 /HEAD
 BODY
 
 
 and line 37 is the header I wrote ? header(Location: yournewpage.php);
 ?
 
 
 - Original Message -
 From: Marek Kilimajer [EMAIL PROTECTED]
 To: PHP [EMAIL PROTECTED]
 Sent: Friday, September 06, 2002 12:55 PM
 Subject: Re: [PHP] question about Location
 
 
 
 
 ?  ? doesn't mean output unless you use echo or print or whatever to
 output from there anything.
 Just use header(Location: yournewpage.php); at the end.
 
 Meltem Demirkus wrote:
 
 
 
 I mean  I made a page with php and other stuff..And there is form
.When
 
 
 I
 
 
 click on okbutton  php is dpoing what it should . But after want the
 
 
 page
 
 
 
 
 to
 
 
 
 
 come to another link.I asked that before and they told me that ..
there
 
 
 
 
 must
 
 
 
 
 be no uotput but I am using ?...? which means  output..
 
 so I dont know what to do..
 meltem
 
 
 - Original Message -
 From: Brad Bonkoski [EMAIL PROTECTED]
 To: Meltem Demirkus [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Friday, September 06, 2002 12:36 PM
 Subject: Re: [PHP] question about Location
 
 
 
 
 
 
 Not quite sure what you are getting at here?  A hyper link would
direct
 the user to another page :-)
 If you mean after a timeout/auto-magically perhaps you can try meta
 
 
 
 
 refresh:
 
 
 
 
 http://www.htmlhelp.com/reference/html40/head/meta.html
 
 HTH
 -Brad
 
 Meltem Demirkus wrote:
 
 
 
 
 Is there anyway  to direct my page to another after the php and
output
 process work on the page?
 
 thanks
 meltem demirkus
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 --
 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



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




Fw: [PHP] question about Location

2002-09-06 Thread Meltem Demirkus

ok thans , I am trying

meltem


 Meltem Demirkus wrote:

 I tried , but it is giving this error:
 
 Warning: Cannot add header information - headers already sent by (output
 started at C:\FoxServ\www\debugger\project_module\project_update_.php:2)
in
 C:\FoxServ\www\debugger\project_module\project_update_.php on line 37
 
 the line 2  is   ? include start_html.php ?
 
 and  start_html.php includes:
 
 ? include(defaults.php) ?
 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 3.2 Final//EN
 HTML
 HEAD
 TITLE ? echo $page_title ?/TITLE
 META http-equiv=Content-Type content=text/html;
charset=windows-1254
 /HEAD
 BODY
 
 
 and line 37 is the header I wrote ? header(Location: yournewpage.php);
 ?
 
 
 - Original Message -
 From: Marek Kilimajer [EMAIL PROTECTED]
 To: PHP [EMAIL PROTECTED]
 Sent: Friday, September 06, 2002 12:55 PM
 Subject: Re: [PHP] question about Location
 
 
 
 
 ?  ? doesn't mean output unless you use echo or print or whatever to
 output from there anything.
 Just use header(Location: yournewpage.php); at the end.
 
 Meltem Demirkus wrote:
 
 
 
 I mean  I made a page with php and other stuff..And there is form
.When
 
 
 I
 
 
 click on okbutton  php is dpoing what it should . But after want the
 
 
 page
 
 
 
 
 to
 
 
 
 
 come to another link.I asked that before and they told me that ..
there
 
 
 
 
 must
 
 
 
 
 be no uotput but I am using ?...? which means  output..
 
 so I dont know what to do..
 meltem
 
 
 - Original Message -
 From: Brad Bonkoski [EMAIL PROTECTED]
 To: Meltem Demirkus [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Friday, September 06, 2002 12:36 PM
 Subject: Re: [PHP] question about Location
 
 
 
 
 
 
 Not quite sure what you are getting at here?  A hyper link would
direct
 the user to another page :-)
 If you mean after a timeout/auto-magically perhaps you can try meta
 
 
 
 
 refresh:
 
 
 
 
 http://www.htmlhelp.com/reference/html40/head/meta.html
 
 HTH
 -Brad
 
 Meltem Demirkus wrote:
 
 
 
 
 Is there anyway  to direct my page to another after the php and
output
 process work on the page?
 
 thanks
 meltem demirkus
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 --
 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




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