title: Adding a php variable to an onclick event
body: <p>This is going to be so simple but I can't see it for looking!! </p>
  
  <p>I have an onclick link on a div, which needs to link to a php file with a parameter 'key=...' The problem with what I've written is that the key number is not being passed.... Am I missing something with my quotes?</p>
  
  <pre><code>&lt;div class="footer-button" onclick="location.href='functions/images-delete.php?key=&lt;?php echo $row_images['key']?&gt;';"&gt;
    Yes
    &lt;/div&gt;
  </code></pre>