<form action="pagina1.php"> <input type="button" onclick="this.form.action='pagina2.php';this.form.submit()" /> </form>