You need your form to generate the correct URL. This is only doable with some Javascript, but basically works like this:
<form action="a.php" method="GET" onsubmit="rewrite_form(event);">
<input name=f value=123>
<input name=t value=ABCABC>
<input name=amt_from value=XYZXYZXYZ>
<input type=submit>
<script type="text/javascript">
function rewrite_form(e) {
var form = document.forms[0]; // .getElementById("form1");
window.location = '' + form.f.value + '_' + form.t.value + '.htm/' + form.amt_from.value;
if (e && e.preventDefault) { e.preventDefault(); }
return false;
}
</script>
So basically the form submit generates the nicer URL you want. If the browser doesn't support Javascript, it will fall back to the more elaborate GET-parameterized URL.
Le Update: The form element access was incorrect, you just need document.forms[0].fieldname.value usually. And I've moved the URL construction out into a separate function. The onsubmit= method works well enough with event.preventDefault(); in Opera/Chrome/Firefox.