I'm trying to get PHP to write
ONCLICK="return doEvent("delete",$counter,"yes");"
and all I get is
ONCLICK="return doEvent(delete,$counter,yes);"
I've tried putting \" in place of the single quote and I've tried using variables i.e. $what2Do = "delete" and $confirm = "yes" earlier in the page
and echoing
ONCLICK=\"return doEvent(\"$whatToDo\",$counter,\"$confirm\");\"
but it doesn't seem to work and I still get javascript error when the page loads.
Thanks