Jump to content

POSTING to mysql on load event


damerit

Recommended Posts

I have an internal web application in php and mysql. I'm looking to log every time the user clicks on a specific link. The user clicks a link to view a record and the session userID, timstamp, and a running count for this record is posted to my mysql table.

 

It has been mentioned to use the onload event. But I'm not sure of how to use the onload-event and post to a database. All I want to do is when either the hyperlink is clicked on or the page loads to send the user information of userID and timestamp to the database.

 

What is the best method of posting this information to the database?

 

 

thks,

dvd

Link to comment
https://forums.phpfreaks.com/topic/108579-posting-to-mysql-on-load-event/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.