Re: [PHP] Mutiple header statements?

2002-10-30 Thread dwalker
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

Re: [PHP] Mutiple header statements?

2002-10-30 Thread dwalker
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 >>

Re: [PHP] Mutiple header statements?

2002-10-30 Thread Marek Kilimajer
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

RE: [PHP] Mutiple header statements?

2002-10-30 Thread ed
> > -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

Re: [PHP] Mutiple header statements?

2002-10-30 Thread @ Edwin
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*... :) -

RE: [PHP] Mutiple header statements?

2002-10-30 Thread John W. Holmes
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

RE: [PHP] Mutiple header statements?

2002-10-30 Thread John W. Holmes
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:

Re: [PHP] Mutiple header statements?

2002-10-30 Thread ed
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

Re: [PHP] Mutiple header statements?

2002-10-30 Thread Marek Kilimajer
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

Re: [PHP] Mutiple header statements?

2002-10-30 Thread ed
> 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...

Re: [PHP] Mutiple header statements?

2002-10-30 Thread ed
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

Re: [PHP] Mutiple header statements?

2002-10-30 Thread 1LT John W. Holmes
> 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

RE: [PHP] Mutiple header statements?

2002-10-30 Thread ed
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"); } > ?>

Re: [PHP] Mutiple header statements?

2002-10-30 Thread Marek Kilimajer
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,

Re: [PHP] Mutiple header statements?

2002-10-30 Thread ed
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

Re: [PHP] Mutiple header statements?

2002-10-30 Thread Rick Emery
- 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

RE: [PHP] Mutiple header statements?

2002-10-30 Thread Liam . Gibbs
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