Shruti
Shruti

Reputation: 781

Is it possible to have a javascript function in php

I have a program which records the time when user clicks the button I have written the timer script in javascript now i want to include this function inside php how can do this.

Thank you,

Swarna

Upvotes: 0

Views: 73

Answers (1)

Iznogood
Iznogood

Reputation: 12843

Use ajax to send the click time details to a php script that will do something with it. ie: log to a database the time of the click.

Upvotes: 2

Related Questions