/* $(window).on("load", function(){ dataFetch(); }); function dataFetch(){ $.ajax({ type: "GET", url: "/Game-Jaming/Backend/controllers/GameJam/GetGameJam.php", success: function(result){ console.log(result[0].name); } }); } */ $("#qweLog").click(function(){ var vgroupName = $("#groupName").val(); var vpassword = $("#groupPassword").val(); $.post("/Game-Jaming/Backend/Controllers/Group/Login.php", { login: "data", groupName: vgroupName, password: vpassword }, function(data){ alert("Data: " + data); }); }); //console.log(result.name); ?gameJamId=1 //console.log(result[0].name); uden ?gameJamId=1