Pare a execução do PHP com JavaScript
<input type="Submit" name="a" value="Delete Command" onclick=my_alert();>
Excited Elk
<input type="Submit" name="a" value="Delete Command" onclick=my_alert();>
<input type="Submit" name="a" value="Delete Command" onclick="my_alert(); return false;" />