let servResponse=document.querySelector('#response');
document.forms.ourForm.onsubmit=function (e) {
e.preventDefault();
let userInput=document.forms.ourForm.ourForm_inp.value;
let userInput1=document.forms.ourForm.ourForm_inp1.value;
let userInput2=document.forms.ourForm.ourForm_inp2.value;
console.log(userInput)
let xhr= new XMLHttpRequest();
xhr.open("POST","mysqli.php");
xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
xhr.onreadystatechange=function (){
if (xhr.readyState===4 && xhr.status===200){
servResponse.textContent=xhr.responseText;
}
}
xhr.send('ourForm_inp=' + userInput+userInput1);
};
< rel=“canonical” href=“orsha1.local/catalog/aksessuary_dlya_volos” />
nth-child(2)
irst-child это что?)