Register Here

function getMainForm() { var xhttp; xhttp = new XMLHttpRequest(); xhttp.onload = function() { if (this.readyState == 4 && this.status == 200) { const serverResponse2 = document.getElementById(“serverMainReg”); serverResponse2.innerHTML = this.responseText; } } xhttp.open(“GET”, “https://www.bryanbutterworth.co.uk/main_reg_form.php?”, true); xhttp.send(); } function mainRegSubmit() { const firstName = document.getElementById(“first_name”).value; if (firstName === undefined){ firstName = “”; } const secondName = document.getElementById(“second_name”).value; if (secondName === undefined){ secondName = “”; } const busMobile = document.getElementById(“bus_mobile”).value; if (busMobile === undefined){ busMobile = “”; } const emailAdd = document.getElementById(“email_add”).value; if (emailAdd === undefined){ emailAdd = “”; } const passOne = document.getElementById(“pass1”).value; if (passOne === undefined){ passOne = “”; } const passTwo = document.getElementById(“pass2”).value; if (passTwo === undefined){ passTwo = “”; } const xhr = new XMLHttpRequest(); xhr.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { const serverQuoteReg = document.getElementById(“serverRegMsg”); serverQuoteReg.innerHTML = this.responseText; } }; xhr.open(“POST”,”https://www.bryanbutterworth.co.uk/main_reg_verify.php?”); xhr.setRequestHeader(“Content-type”, “application/x-www-form-urlencoded”); xhr.send(“first_name=”+firstName+”&second_name=”+secondName+”&bus_mobile=”+busMobile+”&email_add=”+emailAdd+”&password=”+passOne+”&password_rep=”+passTwo); } window.onload = function() { getMainForm();}