The strangest non-form IE6 issue

I need expert advice here ...

I faced the strangest problem of my career ...

I have a form with a lot of "SELECT" tags. Each tag contains a large number of "OPTION" tags.

The form will not be submitted at all, but when I delete parts of the form’s contents (for example, some SELECT tags), the form will be submitted correctly.

However, there is no consistency, I mean, the removal of tags may be random. I tried to see which part of the “deleted” part of my form could cause the form to not be submitted, but I cannot figure it out.

This is easier to explain by showing you an example ... I will skip the js form and function tag because I am sure that they are not a problem now after frequent headaches ...

Here is one SELECT tag:

<div class="nav_sub_juveler" id="nav_sub_juveler"> <select name="smycken_type" id="smycken_type" style="width: 130px; margin-bottom: 5px;"> <option value="Alla Typer" class="nav_option_main" selected>-- Alla Typer --</option> <option value="Klockor & Ur" title="Klockor, Ur">Klockor & Ur</option> <option value="Juveler" title="Smycken, Pärlor, Guld, Silver, Diamanter mm">Juveler</option> <option value="Övrigt" title="Övrigt">Övrigt</option> </select> <br /> <input type="radio" name="smycken_action" id="smycken_säljes" value="Säljes" checked onClick="disable_actions('nav_sub_juveler', false);"> <font face="Arial, Helvetica, sans-serif" style="font-size:14px; font-weight:bold;">Säljes</font> <input type="radio" name="smycken_action" id="smycken_köpes" value="Köpes" onClick="disable_actions('nav_sub_juveler', true);"> <font face="Arial, Helvetica, sans-serif" style="font-size:14px; font-weight:bold;">Köpes</font> </div> 

Now, in this part of the form, I have a separation container that contains some parameters (like the rest of my form). If I decide to remove the radio buttons here, the form will be submitted. So right away, you think: "Well, there must be something about the switches that force the form not to submit!". But no! If I instead remove the "Parameters" in the select tag (or the select tag alltogether), but leave the radios, the form will be sent again. But leaving both will not present a form.

And it’s strange that the rest of the form is done exactly the same as this, and it will present with both radios and the choice ...

I can't figure it out ...

Is there anything you can see here that might cause the problem?

PS: css also has no problems, the problem is in another place ... PS2: I tried to rewrite and reorder the text, but no luck

0
source share
1 answer

If <form> uses GET , try changing it to POST and see if it matters.

As @spbfox said, there is a limit to how long a URL can be.

Edit

It's not just IE6, URLs longer than ~ 2k cause all kinds of breakdowns.

I had an outdated application that used GET on a huge page (over 100 fields), and it worked well for many years ... then last winter the user installed a common toolbar (Google, Yahoo or Bing, I don’t remember which one), and it will silently truncate the data. Changing the page to POST fixed it.

Of course, if your action page uses Request.QueryString (), you will have to change it to Request.Form ().

+1
source

All Articles