Storing button inside of php variable
<p>I have following code:</p>

<pre><code>$boxId = 1;
$explainationBox='&lt;input type="button" id="&lt;?php echo $boxId; ?&gt;" value="send" onmousedown="javascript:callthis(&lt;?php echo $buttonId; ?&gt;);" class="button" /&gt;';
                  echo $explainationBox;
</code></pre>

<p>I am trying to save these values as html button inside of php variable explainationBox. But its not saving actual value of $boxId. It is just saving it as $boxId. As boxId is inside a for loop and will keep on changing. How can i do this?</p>
