PHP And JavaScript onClick?
<p>I have the following:</p>

<p><code>onClick='&lt;?php $message = $_row['message']; $poster = $_row['poster'];?&gt; deletePost();'"</code></p>

<p>I have a <code>while()</code> statement before the <code>onClick</code> (applied to a delete button) but need to set the values of the <code>$poster</code> and <code>$message</code> variables so the PHP script deletes the right record. Any better way to do this?</p>

<p>I am getting the error: <code>Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING</code></p>
