Place buttons on the post form from PHP, not javascript.