A bit confusing code (a mixture of HTML, PHP and JS), but in fact everything is simple: I want to output the following HTML code through PHP:
<button onClick="document.location="admin-edit-head.php?id=1""> --- <button> I just can not understand: where do quotes come from before ID?
By the way, I previously sent the ID through a variable, but during the experiment I found out that with the direct input the same thing.
echo '<tr><td><button onClick="document.location="admin-edit-head.php?id='.$row["ID"].// и т. д. Update
Another interesting effect: I inserted a semicolon between JS "optional" for JS, but, as you can see, this semicolon is no longer between two quotes (the first of which closes the address, the second - onClick="" ), but before them.

