PDA

View Full Version : post multiple url in ajax



mutago
08-16-2015, 10:36 AM
I have this code that post ajax form to database1.php and i now want it to post also to another page database2.php
how can i achieve that





function sendData(url, data) {

$.ajax({
url: 'database1.php',

type: 'POST',
processData: false,
contentType: false,
data: data,
cache: false
}).done(function (data) {

});
}


Thanks

Beverleyh
08-16-2015, 11:02 AM
Google is your friend https://www.google.co.uk/search?q=ajax+post+to+multiple+urls