perplexing error posting to php script

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • mark.richards@massmicro.com

    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='multip art/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
  • Randell D.

    #2
    Re: perplexing error posting to php script


    <mark.richards@ massmicro.com> wrote in message
    news:3f636cad$0 $147$9a6e19ea@n ews.newshosting .com...[color=blue]
    > At first I thought this error had to do with a timeout problem, but now I[/color]
    am[color=blue]
    > 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='multip art/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[/color]
    fields[color=blue]
    > 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[/color]
    contents[color=blue]
    > 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[/color]

    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_VA RIABLES);
    exit;
    ?>

    then test your form with some real data and examine the tabled output.
    phpinfo(INFO_VA RIABLES) 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).


    Comment

    • mark.richards@massmicro.com

      #3
      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-

      Comment

      Working...