Send log data from a php button

0

I want that by means of a button that I have in php of this form:

echo CHtml::button(Yii::t('site', 'Help (F2)'), array('id' => 'run_example'));

and this executes a function like this

<script>
//funcion para el intro
$("#run_example").click(function(){
Sideshow.start({ listAll: true });
});
</script>

What I need to do, is that when the user clicks on that button, the username, date and time are sent to a table in the database

I hope you can help me.

    
asked by Luis Enrique Gómez Pérez 19.09.2018 в 23:27
source

0 answers