fai un submit, verifichi il value del tasto nel $_POST, se il tasto è stato premuto esegui la query