I really don't know why this is not working. data1 and data2 will be sent to my php form but data3 will not no matter what i set it to be. Can anyone point out what is wrong that I may be simply overlooking.
function flap(span) {
var id1 = span.getAttribute('data-id1');
var id2 = span.getAttribute('data-id2');
var lop = id2.slice(8, 1000);
var lip = id2.slice(0, 8);
var str = lop;
var n = str.lastIndexOf("/");
var res = str.slice(0, n);
var mac = res;
var red = mac.lastIndexOf("/");
var rem = red+1;
var ret = mac.slice(rem, 1000);
var slap = ret;
$.ajax({
url:'controlmysite/userfiles.php',
type:'POST',
data:{
data1: id1, data3: slap, data2: lip + res,
},
success: function(filesDirectory1){
$('#filesDirectory').html(filesDirectory1);
}});}
I changed data3 to many different things; i even set it to id1, lip, res, and ret. I swapped positions with data1 and data2, but for some reason data3 simply will not send. Please someone point out what I am obviously overlooking. Thanks for any help.