perplexing error posting to php script

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 ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-13-2003
mark.richards@massmicro.com
 
Posts: n/a
Default perplexing error posting to php script

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
Reply With Quote
  #2 (permalink)  
Old 09-14-2003
Randell D.
 
Posts: n/a
Default Re: perplexing error posting to php script


<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).


Reply With Quote
  #3 (permalink)  
Old 09-14-2003
mark.richards@massmicro.com
 
Posts: n/a
Default Re: perplexing error posting to php script

I found it! I did not convert one of the text fields to html. Therefore
chr(13).chr(10) combinations were generating a mangling of the process.

How dumb of me to miss this.

Thanks for triggering some of my neurons.

-m-
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 06:10 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0