Randy Webb, you are so, so right. I am now further informed.
I set up the construct as you indicated. I added one trivial thing,
that is to use ?, a constant, =, and then the value. PHP has a built in
function that retrieves that easily.
SO I now have a SQL query triggered by a Javascript event, and a
DOM-based update on the page in place. thank you, thank you.