I guess your can add something like this:
<? $ip_address = $REMOTE_ADDR; ?>
<form name="form1" method="POST">
<input type="hidden" name="hiddenField" value="<? echo $REMOTE_ADDR; ?>">
</form>
then do a insert into your database, you may also want to do a hidden field for the page name ect, put them in a 'hit table' the you can make a stats page with a bunch of quearies to give you your stats...