$.ajax({
type: 'POST',
url: 'booking/makebooking_XML.php',
data: {
type: company,
resourceID: resource,
date: bookingdate,
customerID: customer,
rebate: rebate,
status: "2", // 2 = "Real" booking.
position: position,
},
success: bookingmade,
error: errormsg
});
<result
category='1'
size='24'
bookingcost='224.99'
bokingclass='2'
remaining='20'
/>