<form method="post" name="formum" action="">
<input type="text" size="5" name="a1">
<br />
<input type="submit" value="Gonder 1" onclick="document.formum.action='index.php'">
<input type="submit" value="Gonder 2" onclick="document.formum.action='index2.php'">
</form>
dene bir bak çalışıcakmı