so i have a module to do test logins and for our allready checked page we wrote a db update script everytime a check box is checked. but i cant seem to find the correct link to go to the script it is in de same folder as the php what i have now is.
function resetfunc() {
var xhttp = new XMLHttpRequest();
var id = document.getElementById("resetcheck").value;
xhttp.open("GET", "modules/addons/logintest/reset.php?id=" + id, true);
xhttp.send();
}