There is a script. When registering, it displays an alert with a reason that appears from the PHP script, but if there are several reasons, you should do a line break, html tags do not work, I tried to output \ n \ r, it also does not work. Apparently you need to prescribe something in the script itself.
function register() { if(document.getElementById("five").checked) { document.getElementById('reg').disabled = true; var nick = document.getElementById("one").value; var pass = document.getElementById("two").value; var secretik = document.getElementById("three").value; var rules = document.getElementById("five").value; $.post("index.php?engine=reg_post",{login:nick,password:pass,secret:secretik,rule:rules} , function(data) { alert (data); document.getElementById('reg').disabled = false; }); } else { alert('Вы не согласились с правилами!'); document.getElementById('reg').disabled = false; } }
\nseems to work fine. "View" can be in the browser console tab "Network" / "Network" (or similar) - BOPOHhtml, then it’s like tags that will work. - BOPOH