For the following button action, I cannot able to post the "new Date();" to PHP and into the DB... Bascially i am trying to send the button click time-stamp to Database. How do I POST the button click time to PHP?
$baction = pg_escape_string($_POST['baction']);
$sql = "INSERT INTO table VALUES('$baction');";
<FORM action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" >
<input type="baction" value="Action" name="baction" onclick="init(); new Date();">