Here's my problem: In IE9, the submit button isn't posted with the rest of the form. Only in IE9. In every other browser, including older versions of IE, the forms are submitted normally.
Now let me tell you why this is really a problem. The particular forms that are having this problem, are string encoding forms. You enter some text in a textarea, and then click either Encode or Decode. The forms each have two buttons. The submission php file then looks at which button was pressed, and does the appropriate task.
So the easy solution would be to just stick a menu or radio button in there. But that adds a step, i'd much rather keep this a one-click encoding. But I can't figure out how to make it happen.
Here's a form sample:
<form id="urlcoding" action="make_it_so.php" method="post">
<div class="string_textbox_container">
<textarea name="urlsource" class="input_class string_textboxes"></textarea>
</div>
<div class="string_textbox_container">
<textarea id="urlresult" class="input_class string_textboxes"></textarea>
</div>
<p>
<input type="submit" name="encodeurl" value="Encode URL →" class="button_class"> <input type="submit" name="decodeurl" value="Decode URL →" class="button_class">
</form>
And here's the page that processes the results:
if (isset($_POST['encodeurl']))
{
echo urlencode(stripslashes($_POST['urlsource']));
exit;
}
if (isset($_POST['decodeurl']))
{
echo urldecode(stripslashes($_POST['urlsource']));
exit;
}