Basically, you need to make a HTML output, with a form, the form will include several fields (username,pass and so on).
It will then post the form to post.php - and that script will take those variables, and put it into the database.
Here is a very very simple sample I just made- shoudl work - but not tested it
[html]<html>
<head>
<title>test</title>
</head>
<body>
<form action="post.php" method="post">
lfs user: <input name="lfsuser"><br>
which event: <input name="event"><br>
<input type="submit" value="send">
</form>
</body>
</html>[/html]
<?php
php
// this file needs to be called post.php - if changed, also in above code
$db=mysql_connect("dbhost", "dbuser", "dbpass");
mysql_select_db("dbname");
$query='INSERT INTO `event_log` (`lfsuser`, `event`)
VALUES("'.addslashes($_POST['lfsuer']).'",
"'.addslashes($_POST['event']).'")';
mysql_query($query, $db);
echo 'Your request has been stored';
?>