title: PHP escaping syntax again
body: <p>Thanks again for the help with a similar question earlier. I have one more similar, but I think more complicated.</p>
  
  <p>It looks like this in HTML:</p>
  
  <pre><code>&lt;input type="button" class="formButtonDeleteButton" value="" onclick="document.getElementById('WADADeleteRecordID').value=&lt;?php echo($row_WADAactivities2['ActivityID']); ?&gt;;document.getElementById('WADADeleteRecordName').innerHTML='&lt;?php echo($row_WADAactivities2['Activity']); ?&gt;';document.getElementById('deleteBox').style.display = 'block';document.getElementById('deleteMessage').style.display = 'table';" /&gt;
  </code></pre>
  
  <p>I get so far with it, but just get a bit lost, e.g.:</p>
  
  <pre><code>echo '&lt;input type="button" class="formButtonDeleteButton" value="" onclick="document.getElementById('WADADeleteRecordID').value=' . rawurlencode($row_WADAactivities2['ActivityID']) . ;document.getElementById('WADADeleteRecordName').innerHTML=' . rawurlencode($row_WADAactivities2['Activity']);';document.getElementById('deleteBox').style.display = 'block';document.getElementById('deleteMessage').style.display = 'table';" \"/&gt;";
  </code></pre>
  
  <p>This is pretty much the last bit of something I've been looking at that needs tidying up.</p>
  
  <p>Thanks again.</p>