Re: "Cannot modify header information" with large HTML FORM options
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: "Cannot modify header information" with large HTML FORM options

From: Jerry Stuckle <jstucklex@attglobal.net>
Date: Wed Mar 22 2006 - 05:04:07 CET

Chris Robb wrote:
> It's really just a standard for loop:
>
> for ($j=0; $j <93; $j++) {
> echo "<OPTION VALUE='blah'>blah</OPTION>"; <---line 54
> }
>
> Line 88 is trying to set some cookies:
>
> setcookie("currentYear","$year"); <-----------line 88
> setcookie("streetName","$streetName");
>
> -Chris
>

You can't set cookies after you've sent ANY output to the browser!

The question isn't why it fails after 94 iterations. The question is
why it works with 93 iterations.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Received on Mon May 1 02:37:57 2006