I'm having a problem with a php script that sends a variable amount of data via the POST method. In my script, I am using the setcookie function to keep track of all the variables that were sent. The problem is, with certain browsers, when I get to a certain number of variables, the script prints out the garbled header information before my page is even output.
The following is the source at the beginning of the page that gets generated:
Set-Cookie: test_cookie=
3A1%3Bs%3A1%3A%221%22%3Bi%3A2%3Bs%3A5%3A%2259.99%22%3Bi%3A3%3Bs%3A9%3A%22Accessory%22%3B%7Ds%3A19%3A%22Wireless+Web+Option%22%3Ba%3A4%3A%7Bi%3A0%3Bs%3A19%3A%22Wireless+Web+Option%22%3Bi%3A1%3Bs%3A1%3A%221%22%3Bi%3A2%3Bs%3A5%3A%2210.00%22%3Bi%3A3%3Bs%3A11%3A%22Plan+Option%22%3B%7D%7D
Connection: close
Content-Type: text/html
<head>
...
I left out most of the garbled header, that's just a sample.
Does anyone have any ideas why this would happen? I'd say at the most, that I'm sending about 25 variables to the script.
Thanks in advance for your help.
Art Soucy