Остановить выполнение PHP с помощью 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;" />