1<h2>Click</h2>
2<form action="" method="POST">
3 <button name="click" class="click">Click me!</button>
4</form>
5
6<?php
7if(isset($_POST['click']))
8{
9 $date_clicked = date('Y-m-d H:i:s');;
10 echo "Time the button was clicked: " . $date_clicked . "<br>";
11}
12?>
13