<a href="form2.php"><input type="submit" name="submit" value="Продолжить" /></a>
<a id="form-submitter" href="form2.php">Go to form 2</a>
$('#form-submitter').click(function(e){
e.preventDefault();
$.ajax({
url: 'form1.php',
success: function(){
window.location.href = "form2.php";
},
error: function(){
alert('failure');
}
});
});