Here is the page code
$("#submit_ta").click(function(){
var name = $("#name").val();
var rm_from = $("#reimbursement_from").val();
var rm_to = $("#reimbursement_to").val();
var cities = $("#cities_visited").val();
var nofdays = $("#nofdays_ta").val();
if ($('#bills_ta').is(':checked')) {
var bills="Yes";
} else {
var bills="No";
}
var remarks = $("#remarks_ta").val();
var amount=$("#amount_ta").val();
$.post('add-data-sql-ta.php',{name: name, rm_from: rm_from, rm_to: rm_to, cities: cities, nofdays: nofdays, bills: bills,
remarks: remarks,amount: amount},
function(data){
$("#message_ta").html(data);
$("#message_ta").hide();
$("#message_ta").fadeIn(1500);
});
return false;
});
and in add-data-sql-ta.php file you use you get these values and use simple insert query.
Thanks