2 form actions - submit a form twice to different scripts
Hi,
for some reason I need to transmit a form to 2 different scripts at the same time.
Any idea how i can do that?
Any help would be appreciated.
Greetings
Remcha
- jQuery("#form1").validate({
- debug: true,
- submitHandler: function() {
- var dataString = jQuery("#order_form form").serialize();
-
-
- jQuery.ajax({
- type: "POST",
- url: "checkout.php",
- data: dataString,
- //dataType: text,
- success: function(msg) {
-
- jQuery('#order').animate({ left: '400px'}, 4000, 'linear').fadeOut(2500);
- jQuery('#form1').animate({ left: '400px'}, 0, 'linear').fadeOut(0);
- //jQuery('#left').css('left', '400px');
- jQuery('#order_form').html("<div style='margin-top:117px; text-align:center;' id='message'></div>");
- jQuery('#message').html("<p class='text'>Thank you</p>")
- .append("<p class='text' style='margin-bottom:15px;'></p>")
- .fadeIn(500, function() {
- jQuery('#message').append("<img id='checkmark' src='form/ok.png' >");
- });
- },
- });
- return false;
- }
- });
-
-
-