I've a page which contains multi forms. The HTML parser (Tidy) can read all the forms when I use the getForms; however, for some reasons, the 2nd form's parameters only be recognized and treated as inside 1st form.
for example, the first form I've is a dummy form which does a simple POST action. The 2nd form is also doing POST with enctype="multipart/form-data". When I try to do upload file testing, I always get an exception which tells me the form is not MIME encoded.
Is this a bug in HTML parser or my problem?
TIA,
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've a page which contains multi forms. The HTML parser (Tidy) can read all the forms when I use the getForms; however, for some reasons, the 2nd form's parameters only be recognized and treated as inside 1st form.
for example, the first form I've is a dummy form which does a simple POST action. The 2nd form is also doing POST with enctype="multipart/form-data". When I try to do upload file testing, I always get an exception which tells me the form is not MIME encoded.
Is this a bug in HTML parser or my problem?
TIA,
Please try the latest prerelease version or the cvs version. It has changes which should make the parser much more tolerant of sloppy HTML.