[thelist] is there a limit to text with header ("location ...")? -- resolved
Bob Meetin
ontheroad at frii.com
Mon Feb 19 09:38:10 CST 2007
This was it; you know I had this working before but then I changed the
structure to try to combine both the processing script with the output
section. Since it was working fine (wasn't pushing the buffer), I
didn't think twice until I ran into a site with a 'huge' menu. In my
live site I have this fixed with your advice. A working form3.php is
also in place. -Bob
Lee kowalkowski wrote:
> 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.+
>
> 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