TED]>
Date: Wednesday, October 30, 2002 12:34 PM
Subject: Re: [PHP] Mutiple header statements?
>
>
>> WHAT IS THE ERROR?? It tells you _exactly_ in the header error message
where
>> the output was started. Look on or near that line because it caused some
>> outp
MAIL PROTECTED]>
Date: Wednesday, October 30, 2002 12:34 PM
Subject: Re: [PHP] Mutiple header statements?
>
>
>> WHAT IS THE ERROR?? It tells you _exactly_ in the header error message
where
>> the output was started. Look on or near that line because it caused some
>>
That why I say COPY&PASTE your code, if you write it from memory you may
even fix the problem yourself and don't know about it. The code you
wrote first had
nothing wrong in it.
[EMAIL PROTECTED] wrote:
On Wed, 30 Oct 2002, Marek Kilimajer wrote:
You have an empty line there, get rid of the
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:ed@;home.homes2see.com]
> > Sent: Wednesday, October 30, 2002 8:49 AM
> > To: Marek Kilimajer
> > Cc: PHP
> > Subject: Re: [PHP] Mutiple header statements?
> >
> >
> > On Wed, 30 Oct 2
Hello,
<[EMAIL PROTECTED]> wrote:
>
> On Wed, 30 Oct 2002, Marek Kilimajer wrote:
>
> > You have an empty line there, get rid of the
> > ?>
> >
> > > pair
>
> That did it!! I didn't know a blank line inside php tags would be
> interpeted as output.
>
...because it was *outside*... :)
-
limajer
> Cc: PHP
> Subject: Re: [PHP] Mutiple header statements?
>
>
> On Wed, 30 Oct 2002, Marek Kilimajer wrote:
>
> > You have an empty line there, get rid of the
> > ?>
> >
> > > pair
>
> That did it!! I didn't know a blan
See? If you had just started with your actual code and the actual error,
we'd of solved this by now.
---John Holmes...
> -Original Message-
> From: Marek Kilimajer [mailto:kilimajer@;webglobe.sk]
> Sent: Wednesday, October 30, 2002 12:37 PM
> To: PHP
> Subject: Re:
On Wed, 30 Oct 2002, Marek Kilimajer wrote:
> You have an empty line there, get rid of the
> ?>
>
> pair
That did it!! I didn't know a blank line inside php tags would be
interpeted as output.
Thanks!
Ed
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://w
You have an empty line there, get rid of the
?>
pair
[EMAIL PROTECTED] wrote:
WHAT IS THE ERROR?? It tells you _exactly_ in the header error message where
the output was started. Look on or near that line because it caused some
output to the browser and now headers cannot be sent.
---John
> WHAT IS THE ERROR?? It tells you _exactly_ in the header error message where
> the output was started. Look on or near that line because it caused some
> output to the browser and now headers cannot be sent.
>
> ---John Holmes..
Here's the code:
and on from here...
On Wed, 30 Oct 2002, Marek Kilimajer wrote:
> I suppose this is just an excerpt, could you paste some more code here?
>
> [EMAIL PROTECTED] wrote:
>
> >On Wed, 30 Oct 2002, Rick Emery wrote:
> >> >>
> >>if ($_POST['var'] == "this") {
> >>header("Location: scipt1.php"); exit;}
> >>
> >>if ($_PO
> On Wed, 30 Oct 2002, Rick Emery wrote:
>
> > >
> > if ($_POST['var'] == "this") {
> > header("Location: scipt1.php"); exit;}
> >
> > if ($_POST['var'] == "that") {
> > header(Location: script2.php"); exit; }
>
> Nope, I still get a header already sent error if I choose "that."
WHAT IS THE ERRO
On Wed, 30 Oct 2002 [EMAIL PROTECTED] wrote:
> Not sure if this is what you're looking for, but a possible solution could
> be:
>
> if ($_POST['var'] == "this")
> $page = "script1";
>
> if ($_POST['var'] == "that")
> $page = "script2";
>
> header("Location: $page.php"); }
> ?>
I suppose this is just an excerpt, could you paste some more code here?
[EMAIL PROTECTED] wrote:
On Wed, 30 Oct 2002, Rick Emery wrote:
if ($_POST['var'] == "this") {
header("Location: scipt1.php"); exit;}
if ($_POST['var'] == "that") {
header(Location: script2.php"); exit; }
Nope,
On Wed, 30 Oct 2002, Rick Emery wrote:
>
> if ($_POST['var'] == "this") {
> header("Location: scipt1.php"); exit;}
>
> if ($_POST['var'] == "that") {
> header(Location: script2.php"); exit; }
Nope, I still get a header already sent error if I choose "that."
Ed
--
PHP General Mailing L
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 30, 2002 6:25 AM
Subject: [PHP] Mutiple header statements?
Why doesn't this work?
If I select "that" from the form submitting the value to "var" I get a
header already sent error. Ther
Not sure if this is what you're looking for, but a possible solution could
be:
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
17 matches
Mail list logo