This is a discussion on perplexing error posting to php script within the PHP Language forums, part of the PHP Programming Forums category; At first I thought this error had to do with a timeout problem, but now I am almost certain it ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
At first I thought this error had to do with a timeout problem, but now I am
almost certain it has direct bearing on the size of the data that I am posting. I am using a simple form: <?php $contents = "a bunch of text"; ?> <form enctype='multipart/form-data' action='http://www.mysite.com/phpform/forms/process.php' method='post'> <textarea name='Comment' rows=11 cols=60 ><?php echo $contents ?> <input type=submit value='Submit'> <input type=reset value='Cancel - do nothing'> There are actually more fields than i am depicting here. Two of the fields allow for textarea input. Depending on how much text I put into one of these fields, when I press Submit, IE presents me a screen with the contents of what i entered and ending with: Keep-Alive: timeout=15, max=100 Connection: Keep-Alive Transfer-Encoding: chunked Content-Type: text/html 0 After a few seconds, the script that was called finally runs, and does so normally. I'm quite puzzled by this. Has anyone seen this phenomena before? Where should I begin looking for a solution?? Mark Richards Boston |
|
|||
|
<mark.richards@massmicro.com> wrote in message news:3f636cad$0$147$9a6e19ea@news.newshosting.com. .. > At first I thought this error had to do with a timeout problem, but now I am > almost certain it has direct bearing on the size of the data that I am > posting. > > I am using a simple form: > > <?php > $contents = "a bunch of text"; > ?> > <form enctype='multipart/form-data' > action='http://www.mysite.com/phpform/forms/process.php' method='post'> > <textarea name='Comment' rows=11 cols=60 ><?php echo $contents ?> > <input type=submit value='Submit'> > <input type=reset value='Cancel - do nothing'> > > There are actually more fields than i am depicting here. Two of the fields > allow for textarea input. Depending on how much text I put into one of > these fields, when I press Submit, IE presents me a screen with the contents > of what i entered and ending with: > > Keep-Alive: timeout=15, max=100 Connection: Keep-Alive Transfer-Encoding: > chunked Content-Type: text/html 0 > After a few seconds, the script that was called finally runs, and does so > normally. > I'm quite puzzled by this. Has anyone seen this phenomena before? Where > should I begin looking for a solution?? > Mark Richards > Boston How much text are you passing? (perform a strlen() on the two textareas) - Unless you're talking about megabytes of text I can't see a problem occuring on the post. I suggest you temporarily replace your process.php script with a short script including these two lines <? phpinfo(INFO_VARIABLES); exit; ?> then test your form with some real data and examine the tabled output. phpinfo(INFO_VARIABLES) should dump the contents of your form data in to a readable table. If that works, without an error, then I would think the problem is in your process.php script (which I suggest you then post). |