I've got a Java onUnload function. Is there any way to open PHP inside this Java function and let's say to start a mysql_query?
I tried it in a lot of variations, always with a structure like that in mind:
<head>
<title>
</title>
<script language="java">
function exit()
{
<? mysql_query("....."); ?>
}
</script>
</head>
<body onUnload="exit()">
</body>
By now I guess that I'm simply causing some Java PHP mismatch! Am I ?
Any help would be appreciated!
Ben