[thelist] is there a limit to text with header ("location ...")?

Lee kowalkowski lee.kowalkowski at googlemail.com
Mon Feb 19 03:22:44 CST 2007

On 19/02/07, Lee kowalkowski <lee.kowalkowski at googlemail.com> wrote:
> On 19/02/07, Bob Meetin <ontheroad at frii.com> wrote:
> > www.dottedi.biz/codesamples/form1.php
> > www.dottedi.biz/codesamples/form2.php
> > Form 2 has one more character than form 1 and fails upon submit.
> Failing how?  Nothing to do with the lack of a YourVisitID field on
> the second form?

Oh, I actually *used* your form now I understand!  Your "limit" is
your buffer size.  You can't issue header information once your
response has already been sent.

You should be checking for the POST and sending a redirect before you
start sending HTML ideally.

All that HTML you have before your redirect is actually getting
written to the response, once you reach a certain limit, the output
will be flushed (sent to the client).  After this point, your headers
cannot be modified.


More information about the thelist mailing list