Html How Can I Call This Php Function Based On Button Click Stack

Html How Can I Call This Php Function Based On Button Click Stack