I took this from an example on the Javascript DOM reference for forms at w3schools.com . I modified it to fit your needs.
CODE
<html>
<head>
<script type="text/javascript">
function changeActionAndGo(url)
{
var x=document.forms.myForm;
x.action=url;
x.submit();
}
</script>
</head>
<body>
<form name="myForm" action="page.php">
<br /><br />
<input type="button" onclick="changeActionAndGo('page1.php')" value="Submit to page1.php">
<input type="button" onclick="changeActionAndGo('page2.php')" value="Submit to page2.php">
</form>
</body>
</html>
It's a very basic example, and you'll need to modify it to fit your site, but if you have a little experience with JS, that shouldn't be hard. I just demonstrated the concepts.
btw, you should put your code in [code] tags. It makes it easier to read. And you might want to check up on your form syntax before actually writing one. There is no <button> tag, and you can't put anything inside an <input> tag. :wink:
Comment/Reply (w/o sign-up)