I have resorted to everything I can think of and I can't get a PHP variable to go into a form that is onclicked with a Javascript Function...
Here is my attempts thus far:
Give the div that contains the onclick function the php variable as an id, and then attempt to extract the id in the Javascript function. I can't get the javascript to pull the id of the div using this.parentNode.id or getElementsByTagName.id or related methods.
<div id="tom" getID()>
function getID(){
var id = document.getElementsByTagName("div")
alert(id.id);
}or
function getID{
var id=this.parentNode.id
alert(id.id)
}
Pulling my hair out I only have a few left..