Zatrzymaj wykonanie PHP za pomocą 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;" />