El codigo basicamente de los formulario que uso en el sql es:
Código:
<form name="my_form" method="post"> Name <input type="text" name="person_name" /><br /> <input type="button" value="Button 1" name="button_1" onclick="return target_btn1();"> <input type="button" value="Button 2" name="button_2" onclick="return target_btn2();"> </form> <script> function target_btn1() { document.my_form.action = "pagina1.php"; //Trigger action document.my_form.submit(); //Submit action performed return true; } function target_btn2() { document.my_form.action = "pagina2.php"; //Trigger action document.my_form.submit(); //Submit action performed return true; } </script>