<?php
function log_data($user, &$data) {
mysql_query("INSERT INTO userdata VALUES ('".
uniqid()."', '$user', '$data')");
}
?>
<?php log_data($PHP_AUTH_USER, $data); ?>
<?php
function head($title="Default Title") {?>
<HTML><HEAD><TITLE>
<? echo $title ?>
</TITLE></HEAD><BODY><?
}
head();
?>