I’ve been trying to figure this out for days but i can’t get it to work I have this piece of code:
form_data. append ("amount", amoun form_data. append ("name" , name) sajaxli ur1: "create_ fuel receipt", 1/ Upl method: 'post', datatype: 'script', cache: false, contentType: false, processData: false, data: form_data, // Setting the dai success: function (data) { ('#success-msg').html (data) ;
the #success-msg is supposed to echo out the response success message from the add_new_account php file, everything works ate it should, the data gets inserted in the database and the image gets uploaded but i get nothing on the success-msg Your help will be greatly appreciated
the #success-msg is supposed to echo out the response success message from the add_new_account php file, everything works ate it should, the data gets inserted in the database and the image gets uploaded but i get nothing on the success-msg Your help will be greatly appreciated