Inserting PHP into a HTML Button
<p>How do I insert PHP code into a HTML Button? Here's what I have:</p>

<pre><code>&lt;input type="submit" value="Buy" onclick="
&lt;?php
    $sq = mysql_query("SELECT * FROM accounts WHERE Username='$usr'");
    $ar = mysql_fetch_array($sq);

    if ($ar['Beevals'] &gt;= 250){
         mysql_query("UPDATE `accounts` SET `Beevals`=`Beevals`-250 WHERE Username='$usr'");
         mysql_query("UPDATE `accounts` SET `Skin`=`WorkersDream` WHERE Username='$usr'");

    }

?&gt;
" /&gt;
</code></pre>

<p>But it doesn't work. So, I'm wandering how exactly can you insert PHP code into a HTML Button?</p>
