var params = {
action_button: action_button,
jewerly_numb: jewerly_numb,
jewerly_name: jewerly_name,
jewerly_cat: jewerly_cat,
jewerly_proba: jewerly_proba,
jewerly_mass_b: jewerly_mass_b,
jewerly_mass_n: jewerly_mass_n,
jewerly_zalog: jewerly_zalog,
jewerly_percent: jewerly_percent,
jewerly_penya: jewerly_penya,
action_flag: action_flag
};
for (var i=1; i<=numb; i++) {
params["jewerly_title_add" + i] = $('input#JewerlyActionTitleAdd' + i).val();
}
$.post('index.php', params, …