In some situation where we does an <iframe src=“…”> </iframe>, the URL can be longer than 2083 bytes long and it seems it will choke IE 6 and 7. Even though Apache 2.x supports URL up to 8k long, IE will not work when the URL is longer than 2083 bytes.
All the params should be short, except one that is like “user_review”, which can be any length, depending on how long the user wrote.
So in this case, I wonder for the solution of iframe with no src=“…” and then create a form with the form method as POST, and the form’s action = “foo.php?v=2&user_id=123456[and with all params with the shorter values]”, and then with a hidden input, whose name is “user_review” and value=‘<?= htmlspecialchars(“$user_review”) ?>’ (htmlspecialchars() in PHP), and then have a javascript line below to auto submit this form. Is that a common solution? It usually won’t break any browser I think. But this also seems like sort of a hack that will not work if the user has turned off javascript. So is there a better solution I wonder?
Also a catch might be that, if we also specify a src=" … " for the iframe initially, then the iframe might start loading first, and then all of a sudden, the form will auto submit to this iframe, and then it will cause net traffic twice? (the first one being canceled but still induce some system and net overhead). Thanks.