We save the visitors ip address and the web page name when someone visits a website. We do this in mysql. Works great. I can show number of visitors and a summary page of which pages are being visited.
A customer asked that I also show them where the visitor goes when they leave. The customer has several links on there site so I know where the visitor is going. When they press a link what is the best way to save that info. Mousedown goes to Javascript and I don't think you can write into to mysql from Javascript.
How would you approach this problem?
Here is a typical link from there site.
<a href="http://www.abc.php" class="sidelinks" onfocus="this.blur(this.blur)" onmouseover="imgOn('img2')" onmouseout="imgOff('img2')">ABC TV</a>
How would I capture the "http://www.abc.php" and put it in a mysql database? Can I do this with Php somehow? Can you inject some Php commands into the Javascript somehow?
Thanks very much in advance.