php-windows Digest 9 Apr 2007 01:25:55 -0000 Issue 3186
Topics (messages 27645 through 27647):
Re: Warning: Cannot modify header information
27645 by: George Pitcher
27646 by: sam rumaizan
Re: duplicate entry
27647 by: bedul
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
Sam,
> I have to different pages (forms) one.php and two.php I created
> two different pages (onemysql.php and twomysql.php) to handle
> myql data for each of them I add header("Location: one.php");
> to onemysql.php
> And header("Location: two.php"); to twomysql.php
> one.php works fine. two.php give me this Warning: Warning:
> Cannot modify header information - headers already sent by
> (output started at C:\Program
> Files\xampp\htdocs\xampp\Activity_Log\html\twomysql.php:1) in
> C:\Program
> Files\xampp\htdocs\xampp\Activity_Log\html\twomysql.php on line 3
>
You should search the archives before posting. This is one of the most
common queries. You probably have an echo statement or a blank line bofeore
your header() command. Remove or comment out and it should work.
George
--- End Message ---
--- Begin Message ---
Thank you George,
it works fine. as you said. there was a blank line bofeore <?php
George Pitcher <[EMAIL PROTECTED]> wrote:
Sam,
> I have to different pages (forms) one.php and two.php I created
> two different pages (onemysql.php and twomysql.php) to handle
> myql data for each of them I add header("Location: one.php");
> to onemysql.php
> And header("Location: two.php"); to twomysql.php
> one.php works fine. two.php give me this Warning: Warning:
> Cannot modify header information - headers already sent by
> (output started at C:\Program
> Files\xampp\htdocs\xampp\Activity_Log\html\twomysql.php:1) in
> C:\Program
> Files\xampp\htdocs\xampp\Activity_Log\html\twomysql.php on line 3
>
You should search the archives before posting. This is one of the most
common queries. You probably have an echo statement or a blank line bofeore
your header() command. Remove or comment out and it should work.
George
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
---------------------------------
No need to miss a message. Get email on-the-go
with Yahoo! Mail for Mobile. Get started.
--- End Message ---
--- Begin Message ---
use session on your page..
----- Original Message -----
From: "Jarrett Meyer" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, April 06, 2007 8:12 AM
Subject: Re: [PHP-WIN] duplicate entry
> Sorry, but to answer the original question, PHP cannot interact with the
client in this way. PHP resides with the server. Javascript resides with the
client, and even that is, at best, unreliable, since it can be turned off
and/or not work the same with all browsers.
>
> You have to look for answers that can be solved from your end without
involving the client.
>
> Thank you,
> Jarrett Meyer
> http://jarrettmeyer.blogspot.com
>
> No trees were harmed during this transmission; however, several electrons
were terribly inconvenienced.
>
> ----- Original Message ----
> From: sam rumaizan <[EMAIL PROTECTED]>
> To: [email protected]
> Sent: Thursday, April 5, 2007 7:15:36 PM
> Subject: [PHP-WIN] duplicate entry
>
> How do I disable Refresh and Back button. to Prevent duplicate entry
>
>
>
>
>
>
> ---------------------------------
> Don't be flakey. Get Yahoo! Mail for Mobile and
> always stay connected to friends.
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---