Forum Moderators: coopster
Remember, PHP is a server-side scripting engine so, strictly speaking, PHP can not do file uploads.
HTTP does file uploads from web forms. If you can't post, you can't really use HTTP for file uploads from a form. You could upload small amounts sending text by get and then writing it out to a file, but text only and small amounts.
So I've had to create a program that saves text from a form by using cookies and JavaScript. Then PHP is able to read the cookie and pass the text onto the server. Crazy, but it works.
there's a bug in either IE6 or IIS that is stopping forms from working properly
Are you sure about that? Are you just trying to post text? I don't use IIS much, but I can definitely post lots of text using IE6 and IIS.
Not to beat a dead horse with the obvious, but...
- the page validates?
- you've declared the enctype (if uploading more than just text)?
'cause that's just too weird
Tom
Description of the MaxClientRequestBuffer Registry Value [support.microsoft.com]
Maximum URL Length Is 2,083 Characters in Internet Explorer [support.microsoft.com]
RE the threads coopster referenced, they really only discuss problems with sending large amounts of text via GET. POST should have no such limit since the data is not sent as a header at all is it (I believe the post is a separate request with the data in the entity body).
Tom
With POST, the number of passable characters varies. The most I could manage was 332, using an INPUT form field. Sometimes it would be as little as 235.
All other browsers have no problem.
I've tried everything, from clearing the IE6 cache, to rewriting the form, studying existing forms, following the HTML specs, surfing the web for help. All I found was other users posting about the same problem, so I know it's not just my setup. Indeed I tried it on other computers and they too stuck.
Anyway, it's not a problem now I'm using cookies and JavaScript. (This allows around 4000 characters to be passed.) The only problem is it doesn't allow file attachments to be uploaded.
It's not a crucial issue, so I won't worry if there's no solution.