Feed Sign in with OpenID OpenID

Simon Willison’s Weblog

PHP form problem

I’m suffering from a bizzare PHP bug. For some reason, POSTed form entries over a certain length are being lost when submitted to scripts running on this site. Here is a demo script which demonstrates the problem—try typing in a short chunk of text and it will submit fine, but anything long (seemingly over about 1300 characters) will be mysteriously lost. The server’s PHP Info output is available. If you have any idea what could be causing this drop me a line or add a comment to this entry.

This is PHP form problem by Simon Willison, posted on 2nd July 2002.

View blog reactions

Next: More tips from Mark

Previous: Arial and Helvetica

3 comments

  1. Maybe cgiwrap filters out posts > Nkb? post_max_size is set to the default value so shouldn't cause errors.. other than that I've no idea, and there's nothing in the bug tracker :-(

    Peter - 2nd July 2002 20:46 - #

  2. Hmm.. I hadn't thought of that. I'll set up some other CGI scripts (Perl / Python) and see if they have the same problem. Thanks :)

    Simon Willison - 2nd July 2002 22:09 - #

  3. Yup, it's definitely CGIwrap. I've bunged an email at uni web support, so hopefully it'll be fixed soon.

    Simon Willison - 4th July 2002 21:51 - #

Comments are closed.

Previously hosted at http://simon.incutio.com/archive/2002/07/02/phpFormProblem

A django site